package com.hengtongxing.hejiayun_employee.homepage.model;


import com.google.gson.Gson;
import com.hengtongxing.hejiayun_employee.MyApplication;
import com.hengtongxing.hejiayun_employee.appconst.MethodType;
import com.hengtongxing.hejiayun_employee.appconst.URLConst;
import com.hengtongxing.hejiayun_employee.base.DataCallBack;
import com.hengtongxing.hejiayun_employee.bean.ActivateResultBean;
import com.hengtongxing.hejiayun_employee.bean.ActiveListBean;
import com.hengtongxing.hejiayun_employee.bean.AgentBean;
import com.hengtongxing.hejiayun_employee.bean.AgentLevelBean;
import com.hengtongxing.hejiayun_employee.bean.AgentListBean;
import com.hengtongxing.hejiayun_employee.bean.AgentRankListBean;
import com.hengtongxing.hejiayun_employee.bean.AgentShowBean;
import com.hengtongxing.hejiayun_employee.bean.AliAuthDataBean;
import com.hengtongxing.hejiayun_employee.bean.AliPayDataBean;
import com.hengtongxing.hejiayun_employee.bean.AliPayOrderDataBean;
import com.hengtongxing.hejiayun_employee.bean.AreaListBean;
import com.hengtongxing.hejiayun_employee.bean.BankCardBean;
import com.hengtongxing.hejiayun_employee.bean.BankGetCityBean;
import com.hengtongxing.hejiayun_employee.bean.BannerListBean;
import com.hengtongxing.hejiayun_employee.bean.BaseResponseBean;
import com.hengtongxing.hejiayun_employee.bean.BranchBrankListBean;
import com.hengtongxing.hejiayun_employee.bean.CommentListBean;
import com.hengtongxing.hejiayun_employee.bean.CourseDetialsBean;
import com.hengtongxing.hejiayun_employee.bean.CourseListBean;
import com.hengtongxing.hejiayun_employee.bean.CourseShareBean;
import com.hengtongxing.hejiayun_employee.bean.CreateOrderBean;
import com.hengtongxing.hejiayun_employee.bean.DailyStatisticsBean;
import com.hengtongxing.hejiayun_employee.bean.ExpiredCountBean;
import com.hengtongxing.hejiayun_employee.bean.FirmMsgBean;
import com.hengtongxing.hejiayun_employee.bean.HomeMsgListBean;
import com.hengtongxing.hejiayun_employee.bean.IdCardBean;
import com.hengtongxing.hejiayun_employee.bean.ImageBean;
import com.hengtongxing.hejiayun_employee.bean.IncomeListBean;
import com.hengtongxing.hejiayun_employee.bean.IncomeNewBean;
import com.hengtongxing.hejiayun_employee.bean.IncomeStatisticsBean;
import com.hengtongxing.hejiayun_employee.bean.IndexMessageBean;
import com.hengtongxing.hejiayun_employee.bean.IndustryListBean;
import com.hengtongxing.hejiayun_employee.bean.LicenseInfoBean;
import com.hengtongxing.hejiayun_employee.bean.MachinesInfoBean;
import com.hengtongxing.hejiayun_employee.bean.MerchantBean;
import com.hengtongxing.hejiayun_employee.bean.MerchantDetailsBean;
import com.hengtongxing.hejiayun_employee.bean.MerchantDetailsListBean;
import com.hengtongxing.hejiayun_employee.bean.MerchantNumBean;
import com.hengtongxing.hejiayun_employee.bean.MyCourseListBean;
import com.hengtongxing.hejiayun_employee.bean.NumberBean;
import com.hengtongxing.hejiayun_employee.bean.OrderFeeBean;
import com.hengtongxing.hejiayun_employee.bean.OrderListBean;
import com.hengtongxing.hejiayun_employee.bean.PayNumDataBean;
import com.hengtongxing.hejiayun_employee.bean.PayNumListBean;
import com.hengtongxing.hejiayun_employee.bean.PayStatusBean;
import com.hengtongxing.hejiayun_employee.bean.PrepareConfigBean;
import com.hengtongxing.hejiayun_employee.bean.ProductListBean;
import com.hengtongxing.hejiayun_employee.bean.QueryOrderBean;
import com.hengtongxing.hejiayun_employee.bean.QueryOrderListBean;
import com.hengtongxing.hejiayun_employee.bean.QuotaCountBean;
import com.hengtongxing.hejiayun_employee.bean.QuotaListBean;
import com.hengtongxing.hejiayun_employee.bean.RankingListBean;
import com.hengtongxing.hejiayun_employee.bean.RateNewBean;
import com.hengtongxing.hejiayun_employee.bean.RechargeOrderBean;
import com.hengtongxing.hejiayun_employee.bean.ReturncashListBean;
import com.hengtongxing.hejiayun_employee.bean.ScanActivateBean;
import com.hengtongxing.hejiayun_employee.bean.SettlementRecordsBean;
import com.hengtongxing.hejiayun_employee.bean.ShareDetailsBean;
import com.hengtongxing.hejiayun_employee.bean.ShareIntoListBean;
import com.hengtongxing.hejiayun_employee.bean.ShareListBean;
import com.hengtongxing.hejiayun_employee.bean.ShareToBeBean;
import com.hengtongxing.hejiayun_employee.bean.ShopPayStatusBean;
import com.hengtongxing.hejiayun_employee.bean.SmokeListBean;
import com.hengtongxing.hejiayun_employee.bean.StoreActiveBean;
import com.hengtongxing.hejiayun_employee.bean.StoreDeatilsBean;
import com.hengtongxing.hejiayun_employee.bean.StoreHuaBeiRateBean;
import com.hengtongxing.hejiayun_employee.bean.StoreStatisticsBean;
import com.hengtongxing.hejiayun_employee.bean.SystemConfigBean;
import com.hengtongxing.hejiayun_employee.bean.TaskListBean;
import com.hengtongxing.hejiayun_employee.bean.TeamRewardListBean;
import com.hengtongxing.hejiayun_employee.bean.TransferAgentBean;
import com.hengtongxing.hejiayun_employee.bean.TransferAgentNewBean;
import com.hengtongxing.hejiayun_employee.bean.UnReadMsgBean;
import com.hengtongxing.hejiayun_employee.bean.VersionBean;
import com.hengtongxing.hejiayun_employee.bean.WXPayDataBean;
import com.hengtongxing.hejiayun_employee.bean.WXPayOrderDataBean;
import com.hengtongxing.hejiayun_employee.bean.WithdrawListBean;
import com.hengtongxing.hejiayun_employee.bean.WuDiBean;
import com.hengtongxing.hejiayun_employee.retorfit_manager.ResponseObserver;
import com.hengtongxing.hejiayun_employee.retorfit_manager.RetrofitHelper;
import com.hengtongxing.hejiayun_employee.utils.ToastUtil;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class HomePageModelImpl implements IHomePageModel {

    @Override
    public void requestSystemConfig(DataCallBack<SystemConfigBean> callBack) {
        Map<String, Object> params = new HashMap<>();
        RetrofitHelper.getInstance().request(MethodType.POST, URLConst.SystemConfigIndex, params, new ResponseObserver<SystemConfigBean>() {
            @Override
            public void onSuccessful(SystemConfigBean bean, String msg) {
                callBack.onSuccessful(bean);
            }

            @Override
            public void onFailure(SystemConfigBean bean, String msg, String code) {
                ToastUtil.showShort(msg);
            }
        });
    }

    @Override
    public void requestHousesRepairIndex(int page, String status, DataCallBack<TaskListBean> callBack) {
        Map<String, Object> params = new HashMap<>();
        params.put("page", page);
        params.put("status", status);
        params.put("limit", 20);
        RetrofitHelper.getInstance().request(MethodType.POST, URLConst.HousesRepairIndex, params, new ResponseObserver<TaskListBean>() {
            @Override
            public void onSuccessful(TaskListBean bean, String msg) {
                callBack.onSuccessful(bean);
            }

            @Override
            public void onFailure(TaskListBean bean, String msg, String code) {
                ToastUtil.showShort(msg);
            }
        });
    }

    @Override
    public void requestHousekeepingIndex(int page, String status, DataCallBack<TaskListBean> callBack) {
        Map<String, Object> params = new HashMap<>();
        params.put("page", page);
        params.put("status", status);
        params.put("limit", 20);
        RetrofitHelper.getInstance().request(MethodType.POST, URLConst.HousekeepingIndex, params, new ResponseObserver<TaskListBean>() {
            @Override
            public void onSuccessful(TaskListBean bean, String msg) {
                callBack.onSuccessful(bean);
            }

            @Override
            public void onFailure(TaskListBean bean, String msg, String code) {
                ToastUtil.showShort(msg);
            }
        });
    }

    @Override
    public void requestHousesAdvisoryIndex(int page, String status, DataCallBack<TaskListBean> callBack) {
        Map<String, Object> params = new HashMap<>();
        params.put("page", page);
        params.put("status", status);
        params.put("limit", 20);
        RetrofitHelper.getInstance().request(MethodType.POST, URLConst.AdvisoryIndex, params, new ResponseObserver<TaskListBean>() {
            @Override
            public void onSuccessful(TaskListBean bean, String msg) {
                callBack.onSuccessful(bean);
            }

            @Override
            public void onFailure(TaskListBean bean, String msg, String code) {
                ToastUtil.showShort(msg);
            }
        });
    }

    @Override
    public void requestHousesShopOrderIndex(int page, String status, DataCallBack<OrderListBean> callBack) {
        Map<String, Object> params = new HashMap<>();
        params.put("page", page);
        params.put("order_status", status);
        params.put("limit", 20);
        RetrofitHelper.getInstance().request(MethodType.POST, URLConst.ShopOrderIndex, params, new ResponseObserver<OrderListBean>() {
            @Override
            public void onSuccessful(OrderListBean bean, String msg) {
                callBack.onSuccessful(bean);
            }

            @Override
            public void onFailure(OrderListBean bean, String msg, String code) {
                ToastUtil.showShort(msg);
            }
        });
    }

    @Override
    public void requestHousesRepairMeetOrder(String id, DataCallBack<BaseResponseBean> callBack) {
        Map<String, Object> params = new HashMap<>();
        params.put("id", id);
        RetrofitHelper.getInstance().request(MethodType.POST, URLConst.HousesRepairMeetOrder, params, new ResponseObserver<BaseResponseBean>() {
            @Override
            public void onSuccessful(BaseResponseBean bean, String msg) {
                callBack.onSuccessful(bean);
            }

            @Override
            public void onFailure(BaseResponseBean bean, String msg, String code) {
                ToastUtil.showShort(msg);
            }
        });
    }

    @Override
    public void requestHousesHousekeepingMeetOrder(String id, DataCallBack<BaseResponseBean> callBack) {
        Map<String, Object> params = new HashMap<>();
        params.put("id", id);
        RetrofitHelper.getInstance().request(MethodType.POST, URLConst.HousekeepingMeetOrder, params, new ResponseObserver<BaseResponseBean>() {
            @Override
            public void onSuccessful(BaseResponseBean bean, String msg) {
                callBack.onSuccessful(bean);
            }

            @Override
            public void onFailure(BaseResponseBean bean, String msg, String code) {
                ToastUtil.showShort(msg);
            }
        });
    }

    @Override
    public void requestHousesRepairSolve(String id, String money, DataCallBack<BaseResponseBean> callBack) {
        Map<String, Object> params = new HashMap<>();
        params.put("id", id);
        params.put("money", money);
        RetrofitHelper.getInstance().request(MethodType.POST, URLConst.HousesRepairMeetSolve, params, new ResponseObserver<BaseResponseBean>() {
            @Override
            public void onSuccessful(BaseResponseBean bean, String msg) {
                callBack.onSuccessful(bean);
            }

            @Override
            public void onFailure(BaseResponseBean bean, String msg, String code) {
                ToastUtil.showShort(msg);
            }
        });
    }

    @Override
    public void requestHousesHousekeepingSolve(String id, String money, DataCallBack<BaseResponseBean> callBack) {
        Map<String, Object> params = new HashMap<>();
        params.put("id", id);
        params.put("money", money);
        RetrofitHelper.getInstance().request(MethodType.POST, URLConst.HousekeepingMeetSolve, params, new ResponseObserver<BaseResponseBean>() {
            @Override
            public void onSuccessful(BaseResponseBean bean, String msg) {
                callBack.onSuccessful(bean);
            }

            @Override
            public void onFailure(BaseResponseBean bean, String msg, String code) {
                ToastUtil.showShort(msg);
            }
        });
    }

    @Override
    public void requestHousesAdvisoryMeetOrder(String id, DataCallBack<BaseResponseBean> callBack) {
        Map<String, Object> params = new HashMap<>();
        params.put("id", id);
        RetrofitHelper.getInstance().request(MethodType.POST, URLConst.AdvisoryMeetOrder, params, new ResponseObserver<BaseResponseBean>() {
            @Override
            public void onSuccessful(BaseResponseBean bean, String msg) {
                callBack.onSuccessful(bean);
            }

            @Override
            public void onFailure(BaseResponseBean bean, String msg, String code) {
                ToastUtil.showShort(msg);
            }
        });
    }

    @Override
    public void requestShopOrderMeetOrder(String id, DataCallBack<BaseResponseBean> callBack) {
        Map<String, Object> params = new HashMap<>();
        params.put("id", id);
        RetrofitHelper.getInstance().request(MethodType.POST, URLConst.ShopOrderMeetOrder, params, new ResponseObserver<BaseResponseBean>() {
            @Override
            public void onSuccessful(BaseResponseBean bean, String msg) {
                callBack.onSuccessful(bean);
            }

            @Override
            public void onFailure(BaseResponseBean bean, String msg, String code) {
                ToastUtil.showShort(msg);
            }
        });
    }

    @Override
    public void requestShopOrderService(String id, DataCallBack<BaseResponseBean> callBack) {
        Map<String, Object> params = new HashMap<>();
        params.put("id", id);
        RetrofitHelper.getInstance().request(MethodType.POST, URLConst.ShopOrderService, params, new ResponseObserver<BaseResponseBean>() {
            @Override
            public void onSuccessful(BaseResponseBean bean, String msg) {
                callBack.onSuccessful(bean);
            }

            @Override
            public void onFailure(BaseResponseBean bean, String msg, String code) {
                ToastUtil.showShort(msg);
            }
        });
    }

    @Override
    public void requestHousesAdvisorySolve(String id, DataCallBack<BaseResponseBean> callBack) {
        Map<String, Object> params = new HashMap<>();
        params.put("id", id);
        RetrofitHelper.getInstance().request(MethodType.POST, URLConst.AdvisorySolve, params, new ResponseObserver<BaseResponseBean>() {
            @Override
            public void onSuccessful(BaseResponseBean bean, String msg) {
                callBack.onSuccessful(bean);
            }

            @Override
            public void onFailure(BaseResponseBean bean, String msg, String code) {
                ToastUtil.showShort(msg);
            }
        });
    }

    @Override
    public void requestShopOrderSolve(String id, DataCallBack<BaseResponseBean> callBack) {
        Map<String, Object> params = new HashMap<>();
        params.put("id", id);
        RetrofitHelper.getInstance().request(MethodType.POST, URLConst.ShopOrderSolve, params, new ResponseObserver<BaseResponseBean>() {
            @Override
            public void onSuccessful(BaseResponseBean bean, String msg) {
                callBack.onSuccessful(bean);
            }

            @Override
            public void onFailure(BaseResponseBean bean, String msg, String code) {
                ToastUtil.showShort(msg);
            }
        });
    }

    @Override
    public void requestIndexMessage(int page, DataCallBack<IndexMessageBean> callBack) {
        Map<String, Object> params = new HashMap<>();
        params.put("page", page);
        params.put("limit", 20);
        RetrofitHelper.getInstance().request(MethodType.POST, URLConst.MESSAGECENTER, params, new ResponseObserver<IndexMessageBean>() {
            @Override
            public void onSuccessful(IndexMessageBean bean, String msg) {
                callBack.onSuccessful(bean);
            }

            @Override
            public void onFailure(IndexMessageBean bean, String msg, String code) {
                ToastUtil.showShort(msg);
            }
        });
    }

    @Override
    public void requestIndexSystemMessage(int page, DataCallBack<IndexMessageBean> callBack) {
        Map<String, Object> params = new HashMap<>();
        params.put("page", page);
        params.put("limit", 20);
        RetrofitHelper.getInstance().request(MethodType.POST, URLConst.MESSAGECENTERSystem, params, new ResponseObserver<IndexMessageBean>() {
            @Override
            public void onSuccessful(IndexMessageBean bean, String msg) {
                callBack.onSuccessful(bean);
            }

            @Override
            public void onFailure(IndexMessageBean bean, String msg, String code) {
                ToastUtil.showShort(msg);
            }
        });
    }

    @Override
    public void requestDailyStatistics(String date, DataCallBack<DailyStatisticsBean> callBack) {
        Map<String, Object> params = new HashMap<>();
        params.put("date", date);
        RetrofitHelper.getInstance().request(MethodType.POST, URLConst.DAILYSTATISTICS, params, new ResponseObserver<DailyStatisticsBean>() {
            @Override
            public void onSuccessful(DailyStatisticsBean bean, String msg) {
                callBack.onSuccessful(bean);
            }

            @Override
            public void onFailure(DailyStatisticsBean bean, String msg, String code) {
                ToastUtil.showShort(msg);
            }
        });
    }

    @Override
    public void requestAgentAdd(String mobile, String name, String password, DataCallBack<AgentBean> callBack) {
        Map<String, Object> params = new HashMap<>();
        params.put("mobile", mobile);
        params.put("name", name);
        params.put("password", password);
        RetrofitHelper.getInstance().request(MethodType.POST, URLConst.AGENTADD, params, new ResponseObserver<AgentBean>() {
            @Override
            public void onSuccessful(AgentBean bean, String msg) {
                callBack.onSuccessful(bean);
            }

            @Override
            public void onFailure(AgentBean bean, String msg, String code) {
                ToastUtil.showShort(msg);
            }
        });
    }

    @Override
    public void requestAgentUpdateName(String name, DataCallBack<BaseResponseBean> callBack) {
        Map<String, Object> params = new HashMap<>();
        params.put("name", name);
        RetrofitHelper.getInstance().request(MethodType.POST, URLConst.AgenUpdateName, params, new ResponseObserver<BaseResponseBean>() {
            @Override
            public void onSuccessful(BaseResponseBean bean, String msg) {
                callBack.onSuccessful(bean);
            }

            @Override
            public void onFailure(BaseResponseBean bean, String msg, String code) {
                ToastUtil.showShort(msg);
            }
        });
    }

    @Override
    public void requestShareMoneyRateNewMy(DataCallBack<RateNewBean> callBack) {
        RetrofitHelper.getInstance().request(MethodType.POST, URLConst.getShareMoneyRateNewMy, null, new ResponseObserver<RateNewBean>() {
            @Override
            public void onSuccessful(RateNewBean bean, String msg) {
                callBack.onSuccessful(bean);
            }

            @Override
            public void onFailure(RateNewBean bean, String msg, String code) {
                ToastUtil.showShort(msg);
            }
        });
    }

    @Override
    public void requestShareMoneyRateNew(String set_agent_id, DataCallBack<RateNewBean> callBack) {
        Map<String, Object> params = new HashMap<>();
        params.put("set_agent_id", set_agent_id);
        RetrofitHelper.getInstance().request(MethodType.POST, URLConst.getShareMoneyRateNew, params, new ResponseObserver<RateNewBean>() {
            @Override
            public void onSuccessful(RateNewBean bean, String msg) {
                callBack.onSuccessful(bean);
            }

            @Override
            public void onFailure(RateNewBean bean, String msg, String code) {
                ToastUtil.showShort(msg);
            }
        });
    }

    @Override
    public void requestSetShareMoneyRateNew(String set_agent_id, List<RateNewBean.DataBean> mList, DataCallBack<BaseResponseBean> callBack) {
        Map<String, Object> params = new HashMap<>();
        params.put("set_agent_id", set_agent_id);
        params.put("rate_list", new Gson().toJson(mList));
        RetrofitHelper.getInstance().request(MethodType.POST, URLConst.setShareMoneyRateNew, params, new ResponseObserver<BaseResponseBean>() {
            @Override
            public void onSuccessful(BaseResponseBean bean, String msg) {
                callBack.onSuccessful(bean);
            }

            @Override
            public void onFailure(BaseResponseBean bean, String msg, String code) {
                ToastUtil.showShort(msg);
            }
        });
    }

    @Override
    public void requestVerifyBankFourFactor(String settle_name, String settle_mobile, String id_card, String card_no, DataCallBack<BaseResponseBean> callBack) {
        Map<String, Object> params = new HashMap<>();
        params.put("settle_name", settle_name);
        params.put("settle_mobile", settle_mobile);
        params.put("settle_id_card", id_card);
        params.put("settle_card_no", card_no);
        RetrofitHelper.getInstance().request(MethodType.POST, URLConst.verifyBankFourFactor, params, new ResponseObserver<BaseResponseBean>() {
            @Override
            public void onSuccessful(BaseResponseBean bean, String msg) {
                callBack.onSuccessful(bean);
            }

            @Override
            public void onFailure(BaseResponseBean bean, String msg, String code) {
                ToastUtil.showShort(msg);
            }
        });
    }

    @Override
    public void requestAgentIndex(int page, String has_children, String agent_field_name, String agent_field_value, String start_time, String end_time, DataCallBack<AgentListBean> callBack) {
        Map<String, Object> params = new HashMap<>();
        params.put("page", page);
        params.put("limit", 20);
        params.put("has_children", has_children);
        params.put("agent_field_name", agent_field_name);
        params.put("agent_field_value", agent_field_value);
        params.put("start_time", start_time);
        params.put("end_time", end_time);
        RetrofitHelper.getInstance().request(MethodType.POST, URLConst.AGENTINDEX, params, new ResponseObserver<AgentListBean>() {
            @Override
            public void onSuccessful(AgentListBean bean, String msg) {
                callBack.onSuccessful(bean);
            }

            @Override
            public void onFailure(AgentListBean bean, String msg, String code) {
                callBack.onFailed(msg, code);
                ToastUtil.showShort(msg);
            }
        });
    }

    @Override
    public void requestAgentListIndex(int page, String agent_field_name, String agent_field_value, String start_time, String end_time, DataCallBack<AgentListBean> callBack) {
        Map<String, Object> params = new HashMap<>();
        params.put("page", page);
        params.put("limit", 20);
        params.put("agent_field_name", agent_field_name);
        params.put("agent_field_value", agent_field_value);
        params.put("start_time", start_time);
        params.put("end_time", end_time);
        RetrofitHelper.getInstance().request(MethodType.POST, URLConst.AgentList, params, new ResponseObserver<AgentListBean>() {
            @Override
            public void onSuccessful(AgentListBean bean, String msg) {
                callBack.onSuccessful(bean);
            }

            @Override
            public void onFailure(AgentListBean bean, String msg, String code) {
                callBack.onFailed(msg, code);
                ToastUtil.showShort(msg);
            }
        });
    }

    @Override
    public void requestAgentStandardIndex(int page, String agent_field_name, String agent_field_value, String start_time, String end_time, DataCallBack<AgentListBean> callBack) {
        Map<String, Object> params = new HashMap<>();
        params.put("page", page);
        params.put("limit", 20);
        params.put("agent_field_name", agent_field_name);
        params.put("agent_field_value", agent_field_value);
        params.put("start_time", start_time);
        params.put("end_time", end_time);
        RetrofitHelper.getInstance().request(MethodType.POST, URLConst.standardAgent, params, new ResponseObserver<AgentListBean>() {
            @Override
            public void onSuccessful(AgentListBean bean, String msg) {
                callBack.onSuccessful(bean);
            }

            @Override
            public void onFailure(AgentListBean bean, String msg, String code) {
                callBack.onFailed(msg, code);
                ToastUtil.showShort(msg);
            }
        });
    }

    @Override
    public void requestMerchantIndex(int page, int has_children, String merchant_field_value, DataCallBack<MerchantBean> callBack) {
        Map<String, Object> params = new HashMap<>();
        params.put("page", page);
        params.put("limit", 20);
        params.put("has_children", has_children);
        params.put("merchant_field_value", merchant_field_value);
        RetrofitHelper.getInstance().request(MethodType.POST, URLConst.MERCHANTINDEX, params, new ResponseObserver<MerchantBean>() {
            @Override
            public void onSuccessful(MerchantBean bean, String msg) {
                callBack.onSuccessful(bean);
            }

            @Override
            public void onFailure(MerchantBean bean, String msg, String code) {
                ToastUtil.showShort(msg);
            }
        });
    }

    @Override
    public void requestAgentWithdrawalAdd(String code, String money, String type, String with_type, DataCallBack<BaseResponseBean> callBack) {
        Map<String, Object> params = new HashMap<>();
        params.put("code", code);
        params.put("money", money);
        params.put("type", type);
        params.put("with_type", with_type);
        RetrofitHelper.getInstance().request(MethodType.POST, URLConst.AgentWithdrawalAdd, params, new ResponseObserver<BaseResponseBean>() {
            @Override
            public void onSuccessful(BaseResponseBean bean, String msg) {
                callBack.onSuccessful(bean);
            }

            @Override
            public void onFailure(BaseResponseBean bean, String msg, String code) {
                ToastUtil.showShort(msg);
            }
        });
    }

    @Override
    public void requestAgentWithdrawalAddFx(String money, DataCallBack<BaseResponseBean> callBack) {
        Map<String, Object> params = new HashMap<>();
        params.put("money", money);
        RetrofitHelper.getInstance().request(MethodType.POST, URLConst.AgentWithdrawalAddFx, params, new ResponseObserver<BaseResponseBean>() {
            @Override
            public void onSuccessful(BaseResponseBean bean, String msg) {
                callBack.onSuccessful(bean);
            }

            @Override
            public void onFailure(BaseResponseBean bean, String msg, String code) {
                ToastUtil.showShort(msg);
            }
        });
    }

    @Override
    public void requestAgentWithdrawalList(int page, String status, DataCallBack<WithdrawListBean> callBack) {
        Map<String, Object> params = new HashMap<>();
        params.put("page", page);
        params.put("status", status);
        params.put("limit", 20);
        RetrofitHelper.getInstance().request(MethodType.POST, URLConst.AgentWithdrawalList, params, new ResponseObserver<WithdrawListBean>() {
            @Override
            public void onSuccessful(WithdrawListBean bean, String msg) {
                callBack.onSuccessful(bean);
            }

            @Override
            public void onFailure(WithdrawListBean bean, String msg, String code) {
                ToastUtil.showShort(msg);
            }
        });
    }

    @Override
    public void requestDailyNew(String start_date, String end_date, DataCallBack<QueryOrderBean> callBack) {
        Map<String, Object> params = new HashMap<>();
        params.put("start_date", start_date);
        params.put("end_date", end_date);
        RetrofitHelper.getInstance().request(MethodType.POST, URLConst.getDailyNew, params, new ResponseObserver<QueryOrderBean>() {
            @Override
            public void onSuccessful(QueryOrderBean bean, String msg) {
                callBack.onSuccessful(bean);
            }

            @Override
            public void onFailure(QueryOrderBean bean, String msg, String code) {
                ToastUtil.showShort(msg);
            }
        });
    }

    @Override
    public void requestDailyNewList(int page, String has_children, String pay_status, String store_name, String start_date, String end_date, DataCallBack<QueryOrderListBean> callBack) {
        Map<String, Object> params = new HashMap<>();
        params.put("page", page);
        params.put("limit", 20);
        params.put("has_children", has_children);
        params.put("pay_status", pay_status);
        params.put("mem_name", store_name);
        params.put("start_time", start_date);
        params.put("end_time", end_date);
        RetrofitHelper.getInstance().request(MethodType.POST, URLConst.getDailyNewList, params, new ResponseObserver<QueryOrderListBean>() {
            @Override
            public void onSuccessful(QueryOrderListBean bean, String msg) {
                callBack.onSuccessful(bean);
            }

            @Override
            public void onFailure(QueryOrderListBean bean, String msg, String code) {
                callBack.onFailed(msg, code);
                ToastUtil.showShort(msg);
            }
        });
    }

    @Override
    public void requestOrderShareMoneyDetailList(int page, String store_name, String start_date, String end_date, DataCallBack<IncomeListBean> callBack) {
        Map<String, Object> params = new HashMap<>();
        params.put("page", page);
        params.put("limit", 20);
        params.put("store_name", store_name);
        params.put("start_time", start_date);
        params.put("end_time", end_date);
        RetrofitHelper.getInstance().request(MethodType.POST, URLConst.OrderShareMoneyDetail, params, new ResponseObserver<IncomeListBean>() {
            @Override
            public void onSuccessful(IncomeListBean bean, String msg) {
                callBack.onSuccessful(bean);
            }

            @Override
            public void onFailure(IncomeListBean bean, String msg, String code) {
                ToastUtil.showShort(msg);
            }
        });
    }

    @Override
    public void requestReturncashOrderDetailList(int page, String start_date, String end_date, DataCallBack<IncomeListBean> callBack) {
        Map<String, Object> params = new HashMap<>();
        params.put("page", page);
        params.put("limit", 20);
        params.put("start_time", start_date);
        params.put("end_time", end_date);
        RetrofitHelper.getInstance().request(MethodType.POST, URLConst.ReturncashOrderDetail, params, new ResponseObserver<IncomeListBean>() {
            @Override
            public void onSuccessful(IncomeListBean bean, String msg) {
                callBack.onSuccessful(bean);
            }

            @Override
            public void onFailure(IncomeListBean bean, String msg, String code) {
                ToastUtil.showShort(msg);
            }
        });
    }

    @Override
    public void requestTransferAgent(String agent_id, String type, String prefix, String min_no, String max_no, DataCallBack<BaseResponseBean> callBack) {
        Map<String, Object> params = new HashMap<>();
        params.put("agent_id", agent_id);
        params.put("type", type);
        params.put("prefix", prefix);
        params.put("min_no", min_no);
        params.put("max_no", max_no);
        RetrofitHelper.getInstance().request(MethodType.POST, URLConst.transferAgent, params, new ResponseObserver<BaseResponseBean>() {
            @Override
            public void onSuccessful(BaseResponseBean bean, String msg) {
                callBack.onSuccessful(bean);
            }

            @Override
            public void onFailure(BaseResponseBean bean, String msg, String code) {
                ToastUtil.showShort(msg);
            }
        });
    }

    @Override
    public void requestSelectTransferAgent(String in_agent_id, String type, String prefix, List<String> device_no_list, DataCallBack<BaseResponseBean> callBack) {
        Map<String, Object> params = new HashMap<>();
        params.put("accept_agent_id", in_agent_id);
        params.put("type", type);
        params.put("no", new Gson().toJson(device_no_list));
        RetrofitHelper.getInstance().request(MethodType.POST, URLConst.selectTransferAgent, params, new ResponseObserver<BaseResponseBean>() {
            @Override
            public void onSuccessful(BaseResponseBean bean, String msg) {
                callBack.onSuccessful(bean);
            }

            @Override
            public void onFailure(BaseResponseBean bean, String msg, String code) {
                ToastUtil.showShort(msg);
            }
        });
    }

    @Override
    public void requestDeviceUnifySetRate(String compre_rate, String high_rate, String normal_rate, String low_rate, List<String> device_no_list, DataCallBack<BaseResponseBean> callBack) {
        Map<String, Object> params = new HashMap<>();
        params.put("compre_rate", compre_rate);
        params.put("high_rate", high_rate);
//        params.put("normal_rate", normal_rate);
//        params.put("low_rate", low_rate);
        params.put("no", new Gson().toJson(device_no_list));
        RetrofitHelper.getInstance().request(MethodType.POST, URLConst.DeviceUnifySetRate, params, new ResponseObserver<BaseResponseBean>() {
            @Override
            public void onSuccessful(BaseResponseBean bean, String msg) {
                callBack.onSuccessful(bean);
            }

            @Override
            public void onFailure(BaseResponseBean bean, String msg, String code) {
                ToastUtil.showShort(msg);
            }
        });
    }

    @Override
    public void requestDeviceUnifySetRateMany(String compre_rate, String high_rate, String normal_rate, String low_rate, String start_no, String end_no, DataCallBack<BaseResponseBean> callBack) {
        Map<String, Object> params = new HashMap<>();
        params.put("compre_rate", compre_rate);
        params.put("high_rate", high_rate);
//        params.put("normal_rate", normal_rate);
//        params.put("low_rate", low_rate);
        params.put("start_no", start_no);
        params.put("end_no", end_no);
        RetrofitHelper.getInstance().request(MethodType.POST, URLConst.DeviceUnifySetRateMany, params, new ResponseObserver<BaseResponseBean>() {
            @Override
            public void onSuccessful(BaseResponseBean bean, String msg) {
                callBack.onSuccessful(bean);
            }

            @Override
            public void onFailure(BaseResponseBean bean, String msg, String code) {
                ToastUtil.showShort(msg);
            }
        });
    }

    @Override
    public void requestDeviceUnifySetStoreRate(String compre_rate, String high_rate, String normal_rate, String low_rate, List<String> store_number, DataCallBack<BaseResponseBean> callBack) {
        Map<String, Object> params = new HashMap<>();
        params.put("compre_rate", compre_rate);
        params.put("high_rate", high_rate);
//        params.put("normal_rate", normal_rate);
//        params.put("low_rate", low_rate);
        params.put("store_number", new Gson().toJson(store_number));
        RetrofitHelper.getInstance().request(MethodType.POST, URLConst.DeviceUnifySetStoreRate, params, new ResponseObserver<BaseResponseBean>() {
            @Override
            public void onSuccessful(BaseResponseBean bean, String msg) {
                callBack.onSuccessful(bean);
            }

            @Override
            public void onFailure(BaseResponseBean bean, String msg, String code) {
                ToastUtil.showShort(msg);
            }
        });
    }

    @Override
    public void requestApplyRate(String start_no, String end_no, String rate_type, DataCallBack<BaseResponseBean> callBack) {
        Map<String, Object> params = new HashMap<>();
        params.put("start_no", start_no);
        params.put("end_no", end_no);
        params.put("rate_type", rate_type);
        RetrofitHelper.getInstance().request(MethodType.POST, URLConst.applyRate, params, new ResponseObserver<BaseResponseBean>() {
            @Override
            public void onSuccessful(BaseResponseBean bean, String msg) {
                callBack.onSuccessful(bean);
            }

            @Override
            public void onFailure(BaseResponseBean bean, String msg, String code) {
                ToastUtil.showShort(msg);
            }
        });
    }

    @Override
    public void requestManyApplyRate(String rate_type, List<String> device_no_list, DataCallBack<BaseResponseBean> callBack) {
        Map<String, Object> params = new HashMap<>();
        params.put("group_no", new Gson().toJson(device_no_list));
        params.put("rate_type", rate_type);
        RetrofitHelper.getInstance().request(MethodType.POST, URLConst.applyManyRate, params, new ResponseObserver<BaseResponseBean>() {
            @Override
            public void onSuccessful(BaseResponseBean bean, String msg) {
                callBack.onSuccessful(bean);
            }

            @Override
            public void onFailure(BaseResponseBean bean, String msg, String code) {
                ToastUtil.showShort(msg);
            }
        });
    }

    @Override
    public void requestTransferAgentIndex(DataCallBack<AgentListBean> callBack) {
        Map<String, Object> params = new HashMap<>();
        params.put("limit", -1);
        RetrofitHelper.getInstance().request(MethodType.POST, URLConst.AGENTINDEX, params, new ResponseObserver<AgentListBean>() {
            @Override
            public void onSuccessful(AgentListBean bean, String msg) {
                callBack.onSuccessful(bean);
            }

            @Override
            public void onFailure(AgentListBean bean, String msg, String code) {
                ToastUtil.showShort(msg);
            }
        });
    }

    @Override
    public void requesTransferStore(String store_no, String type, String prefix, String min_no, String max_no, DataCallBack<BaseResponseBean> callBack) {
        Map<String, Object> params = new HashMap<>();
        params.put("store_no", store_no);
        params.put("type", type);
        params.put("prefix", prefix);
        params.put("min_no", min_no);
        params.put("max_no", max_no);
        RetrofitHelper.getInstance().request(MethodType.POST, URLConst.transferstore, params, new ResponseObserver<BaseResponseBean>() {
            @Override
            public void onSuccessful(BaseResponseBean bean, String msg) {
                callBack.onSuccessful(bean);
            }

            @Override
            public void onFailure(BaseResponseBean bean, String msg, String code) {
                ToastUtil.showShort(msg);
            }
        });
    }

    @Override
    public void requesSelectTransferStore(String store_no, String type, String prefix, List<String> device_no_list, DataCallBack<BaseResponseBean> callBack) {
        Map<String, Object> params = new HashMap<>();
        params.put("store_no", store_no);
        params.put("type", type);
        params.put("prefix", prefix);
        params.put("device_id_list", new Gson().toJson(device_no_list));
        RetrofitHelper.getInstance().request(MethodType.POST, URLConst.selectTransferStore, params, new ResponseObserver<BaseResponseBean>() {
            @Override
            public void onSuccessful(BaseResponseBean bean, String msg) {
                callBack.onSuccessful(bean);
            }

            @Override
            public void onFailure(BaseResponseBean bean, String msg, String code) {
                ToastUtil.showShort(msg);
            }
        });
    }

    @Override
    public void requestStoreIndex(int page, String type, DataCallBack<TransferAgentBean> callBack) {
        Map<String, Object> params = new HashMap<>();
        params.put("page", page);
        params.put("limit", 20);
        params.put("type", type);
        RetrofitHelper.getInstance().request(MethodType.POST, URLConst.agentList, params, new ResponseObserver<TransferAgentBean>() {
            @Override
            public void onSuccessful(TransferAgentBean bean, String msg) {
                callBack.onSuccessful(bean);
            }

            @Override
            public void onFailure(TransferAgentBean bean, String msg, String code) {
                ToastUtil.showShort(msg);
            }
        });
    }

    @Override
    public void requestCancelTransferAgent(String min_no, String max_no, String prefix, String type, DataCallBack<BaseResponseBean> callBack) {
        Map<String, Object> params = new HashMap<>();
        params.put("type", type);
        params.put("prefix", prefix);
        params.put("min_no", min_no);
        params.put("max_no", max_no);
        RetrofitHelper.getInstance().request(MethodType.POST, URLConst.cancelTransferAgent, params, new ResponseObserver<BaseResponseBean>() {
            @Override
            public void onSuccessful(BaseResponseBean bean, String msg) {
                callBack.onSuccessful(bean);
            }

            @Override
            public void onFailure(BaseResponseBean bean, String msg, String code) {
                ToastUtil.showShort(msg);
            }
        });
    }

    @Override
    public void requestSelectCancelTransferAgent(List<String> device_no_list, String prefix, String type, DataCallBack<BaseResponseBean> callBack) {
        Map<String, Object> params = new HashMap<>();
        params.put("type", type);
        params.put("prefix", prefix);
        params.put("device_id_list", new Gson().toJson(device_no_list));
        RetrofitHelper.getInstance().request(MethodType.POST, URLConst.selectCancelTransferAgent, params, new ResponseObserver<BaseResponseBean>() {
            @Override
            public void onSuccessful(BaseResponseBean bean, String msg) {
                callBack.onSuccessful(bean);
            }

            @Override
            public void onFailure(BaseResponseBean bean, String msg, String code) {
                ToastUtil.showShort(msg);
            }
        });
    }

    @Override
    public void requestDeviceUnifyShow(String id, DataCallBack<MachinesInfoBean> callBack) {
        Map<String, Object> params = new HashMap<>();
        params.put("id", id);
        RetrofitHelper.getInstance().request(MethodType.POST, URLConst.DeviceUnifyShow, params, new ResponseObserver<MachinesInfoBean>() {
            @Override
            public void onSuccessful(MachinesInfoBean bean, String msg) {
                callBack.onSuccessful(bean);
            }

            @Override
            public void onFailure(MachinesInfoBean bean, String msg, String code) {
                ToastUtil.showShort(msg);
            }
        });
    }

    @Override
    public void requestDeviceEnable(String id, String no, String qrcode, String prefix, DataCallBack<ScanActivateBean> callBack) {
        Map<String, Object> params = new HashMap<>();
        params.put("id", id);
        params.put("no", no);
        params.put("qrcode", qrcode);
        params.put("prefix", prefix);
        RetrofitHelper.getInstance().request(MethodType.POST, URLConst.deviceEnable, params, new ResponseObserver<ScanActivateBean>() {
            @Override
            public void onSuccessful(ScanActivateBean bean, String msg) {
                callBack.onSuccessful(bean);
            }

            @Override
            public void onFailure(ScanActivateBean bean, String msg, String code) {
                callBack.onFailed(msg, code);
                ToastUtil.showShort(msg);
            }
        });
    }

    @Override
    public void requestReturncashOrderShow(String order_no, DataCallBack<ActivateResultBean> callBack) {
        Map<String, Object> params = new HashMap<>();
        params.put("order_no", order_no);
        RetrofitHelper.getInstance().request(MethodType.POST, URLConst.ReturncashOrderShow, params, new ResponseObserver<ActivateResultBean>() {
            @Override
            public void onSuccessful(ActivateResultBean bean, String msg) {
                callBack.onSuccessful(bean);
            }

            @Override
            public void onFailure(ActivateResultBean bean, String msg, String code) {
                callBack.onFailed(msg, code);
                ToastUtil.showShort(msg);
            }
        });
    }

    @Override
    public void requestTestCloudHorn(String full_code, DataCallBack<BaseResponseBean> callBack) {
        Map<String, Object> params = new HashMap<>();
        params.put("full_code", full_code);
        RetrofitHelper.getInstance().request(MethodType.POST, URLConst.testCloudHorn, params, new ResponseObserver<BaseResponseBean>() {
            @Override
            public void onSuccessful(BaseResponseBean bean, String msg) {
                callBack.onSuccessful(bean);
            }

            @Override
            public void onFailure(BaseResponseBean bean, String msg, String code) {
                ToastUtil.showShort(msg);
            }
        });
    }

    @Override
    public void requestBankGetCity(String bank_name, String bank_area, DataCallBack<BankGetCityBean> callBack) {
        Map<String, Object> params = new HashMap<>();
        params.put("bank_name", bank_name);
        params.put("bank_area", bank_area);
        RetrofitHelper.getInstance().request(MethodType.POST, URLConst.BANKGETCITY, params, new ResponseObserver<BankGetCityBean>() {
            @Override
            public void onSuccessful(BankGetCityBean bean, String msg) {
                callBack.onSuccessful(bean);
            }

            @Override
            public void onFailure(BankGetCityBean bean, String msg, String code) {
                ToastUtil.showShort(msg);
            }
        });
    }

    @Override
    public void requestBankGetBranch(String bank_name, String bank_area, String bank_city, DataCallBack<BankGetCityBean> callBack) {
        Map<String, Object> params = new HashMap<>();
        params.put("bank_name", bank_name);
        params.put("bank_area", bank_area);
        params.put("bank_city", bank_city);
        RetrofitHelper.getInstance().request(MethodType.POST, URLConst.BANKGETBRANCH, params, new ResponseObserver<BankGetCityBean>() {
            @Override
            public void onSuccessful(BankGetCityBean bean, String msg) {
                callBack.onSuccessful(bean);
            }

            @Override
            public void onFailure(BankGetCityBean bean, String msg, String code) {
                ToastUtil.showShort(msg);
            }
        });
    }

    @Override
    public void requestIndustryIndex(DataCallBack<IndustryListBean> callBack) {
        Map<String, Object> params = new HashMap<>();
        params.put("page", 1);
        params.put("limit", 20);
        RetrofitHelper.getInstance().request(MethodType.POST, URLConst.IndustryIndex, params, new ResponseObserver<IndustryListBean>() {
            @Override
            public void onSuccessful(IndustryListBean bean, String msg) {
                callBack.onSuccessful(bean);
            }

            @Override
            public void onFailure(IndustryListBean bean, String msg, String code) {
                ToastUtil.showShort(msg);
            }
        });
    }

    @Override
    public void requestUploadFile(String dir_name, String file, DataCallBack<ImageBean> callBack) {
        Map<String, Object> params = new HashMap<>();
        params.put("dir_name", dir_name);
        params.put("file", "data:image/png;base64," + file);
        RetrofitHelper.getInstance().request(MethodType.POST, URLConst.UploadFile, params, new ResponseObserver<ImageBean>() {
            @Override
            public void onSuccessful(ImageBean bean, String msg) {
                callBack.onSuccessful(bean);
            }

            @Override
            public void onFailure(ImageBean bean, String msg, String code) {
                ToastUtil.showShort(msg);
            }
        });
    }

    @Override
    public void requestAliIdCard(String file_path, String side, DataCallBack<IdCardBean> callBack) {
        Map<String, Object> params = new HashMap<>();
        params.put("file_path", file_path);
        params.put("side", side);
        RetrofitHelper.getInstance().request(MethodType.POST, URLConst.ALIIDCARD, params, new ResponseObserver<IdCardBean>() {
            @Override
            public void onSuccessful(IdCardBean bean, String msg) {
                callBack.onSuccessful(bean);
            }

            @Override
            public void onFailure(IdCardBean bean, String msg, String code) {
                ToastUtil.showShort(msg);
            }
        });
    }

    @Override
    public void requestAliLicenseInfo(String file_path, DataCallBack<LicenseInfoBean> callBack) {
        Map<String, Object> params = new HashMap<>();
        params.put("file_path", file_path);
        RetrofitHelper.getInstance().request(MethodType.POST, URLConst.ALILICENSEINFO, params, new ResponseObserver<LicenseInfoBean>() {
            @Override
            public void onSuccessful(LicenseInfoBean bean, String msg) {
                callBack.onSuccessful(bean);
            }

            @Override
            public void onFailure(LicenseInfoBean bean, String msg, String code) {
                ToastUtil.showShort(msg);
            }
        });
    }

    @Override
    public void requestAliBankCard(String file_path, DataCallBack<BankCardBean> callBack) {
        Map<String, Object> params = new HashMap<>();
        params.put("file_path", file_path);
        RetrofitHelper.getInstance().request(MethodType.POST, URLConst.ALIBANKCARD, params, new ResponseObserver<BankCardBean>() {
            @Override
            public void onSuccessful(BankCardBean bean, String msg) {
                callBack.onSuccessful(bean);
            }

            @Override
            public void onFailure(BankCardBean bean, String msg, String code) {
                ToastUtil.showShort(msg);
            }
        });
    }

    @Override
    public void requestStoreIncomeProfile(String merchant_id, int quick_income, String merchant_type, String merchant_name, String user_wx, String contact_name, String legal_name,
                                          String contact_mobile, String password, String legal_id_card_no, String legal_id_card_start,
                                          String legal_id_card_end, String province, String city, String area, String address, String lng,
                                          String lat, String license_no, String license_full_name, String license_address,
                                          String license_start, String license_end, String shop_type, String settle_to, String industry_id,
                                          String rate, String legal_flag, String account_type, String branch, String holder,
                                          String holder_id_card_no, String holder_mobile, String bank_card_no, String door_pic,
                                          String inside_pic, String cashier_desk_pic, String license_pic, String bank_card_front_pic,
                                          String legal_id_card_front_pic, String legal_id_card_back_pic, String legal_id_card_hand_pic,
                                          String non_leg_settle_auth_pic, String non_leg_idcard_front_pic, String non_leg_idcard_back_pic,
                                          String terminal_type, String collect_pic, String collect_pic_two, String merchant_register_pic, String settle_account_type,
                                          String reg_capital,
                                          DataCallBack<BaseResponseBean> callBack) {

        Map<String, Object> params = new HashMap<>();
        params.put("merchant_id", merchant_id == null ? "" : merchant_id);
        params.put("quick_income", quick_income);
        params.put("merchant_type", merchant_type == null ? "" : merchant_type);
        params.put("merchant_name", merchant_name == null ? "" : merchant_name);
        params.put("user_wx", user_wx == null ? "" : user_wx);
        params.put("contact_name", contact_name == null ? "" : contact_name);
        params.put("legal_name", legal_name == null ? "" : legal_name);
        params.put("contact_mobile", contact_mobile == null ? "" : contact_mobile);
        params.put("password", password == null ? "" : password);
        params.put("legal_id_card_no", legal_id_card_no == null ? "" : legal_id_card_no);
        params.put("legal_id_card_start", legal_id_card_start == null ? "" : legal_id_card_start);
        params.put("legal_id_card_end", legal_id_card_end == null ? "" : legal_id_card_end);
        params.put("province", province == null ? "" : province);
        params.put("city", city == null ? "" : city);
        params.put("area", area == null ? "" : area);
        params.put("address", address == null ? "" : address);
        params.put("lng", lng == null ? "" : lng);
        params.put("lat", lat == null ? "" : lat);
        params.put("license_no", license_no == null ? "" : license_no);
        params.put("license_full_name", license_full_name == null ? "" : license_full_name);
        params.put("license_address", license_address == null ? "" : license_address);
        params.put("license_start", license_start == null ? "" : license_start);
        params.put("license_end", license_end == null ? "" : license_end);
        params.put("shop_type", shop_type == null ? "" : shop_type);
        params.put("settle_to", settle_to == null ? "" : settle_to);
        params.put("industry_id", industry_id == null ? "" : industry_id);
        params.put("rate", rate == null ? "" : rate);
        params.put("legal_flag", legal_flag == null ? "" : legal_flag);
        params.put("account_type", account_type == null ? "" : account_type);
        params.put("branch", branch == null ? "" : branch);
        params.put("holder", holder == null ? "" : holder);
        params.put("holder_id_card_no", holder_id_card_no == null ? "" : holder_id_card_no);
        params.put("holder_mobile", holder_mobile == null ? "" : holder_mobile);
        params.put("bank_card_no", bank_card_no == null ? "" : bank_card_no);
        params.put("door_pic", door_pic == null ? "" : door_pic);
        params.put("inside_pic", inside_pic == null ? "" : inside_pic);
        params.put("cashier_desk_pic", cashier_desk_pic == null ? "" : cashier_desk_pic);
        params.put("license_pic", license_pic == null ? "" : license_pic);
        params.put("bank_card_front_pic", bank_card_front_pic == null ? "" : bank_card_front_pic);
        params.put("legal_id_card_front_pic", legal_id_card_front_pic == null ? "" : legal_id_card_front_pic);
        params.put("legal_id_card_back_pic", legal_id_card_back_pic == null ? "" : legal_id_card_back_pic);
        params.put("legal_id_card_hand_pic", legal_id_card_hand_pic == null ? "" : legal_id_card_hand_pic);
        params.put("non_leg_settle_auth_pic", non_leg_settle_auth_pic == null ? "" : non_leg_settle_auth_pic);
        params.put("non_leg_idcard_front_pic", non_leg_idcard_front_pic == null ? "" : non_leg_idcard_front_pic);
        params.put("non_leg_idcard_back_pic", non_leg_idcard_back_pic == null ? "" : non_leg_idcard_back_pic);
        params.put("terminal_type", terminal_type == null ? "" : terminal_type);
        params.put("collect_pic", collect_pic == null ? "" : collect_pic);
        params.put("collect_pic_two", collect_pic_two == null ? "" : collect_pic_two);
        params.put("merchant_register_pic", merchant_register_pic == null ? "" : merchant_register_pic);
        params.put("mcc_code", "5812");
        params.put("settle_account_type", settle_account_type == null ? "" : settle_account_type);
        params.put("reg_capital", reg_capital == null ? "" : reg_capital);

        RetrofitHelper.getInstance().request(MethodType.POST, URLConst.incomeProfile, params, new ResponseObserver<BaseResponseBean>() {
            @Override
            public void onSuccessful(BaseResponseBean bean, String msg) {
                callBack.onSuccessful(bean);
            }

            @Override
            public void onFailure(BaseResponseBean bean, String msg, String code) {
                callBack.onFailed(msg, code);
                ToastUtil.showShort(msg);
            }
        });

    }

    @Override
    public void requestStoreSaveProfile(String store_no, int quick_income, String merchant_type, String merchant_name, String user_wx, String contact_name, String legal_name,
                                        String contact_mobile, String legal_id_card_no, String legal_id_card_start,
                                        String legal_id_card_end, String province, String city, String area, String address, String lng,
                                        String lat, String license_no, String license_full_name, String license_address,
                                        String license_start, String license_end, String shop_type, String settle_to, String industry_id,
                                        String rate, String legal_flag, String account_type, String branch, String holder,
                                        String holder_id_card_no, String holder_mobile, String bank_card_no, String door_pic,
                                        String inside_pic, String cashier_desk_pic, String license_pic, String bank_card_front_pic,
                                        String legal_id_card_front_pic, String legal_id_card_back_pic, String legal_id_card_hand_pic,
                                        String non_leg_settle_auth_pic, String non_leg_idcard_front_pic, String non_leg_idcard_back_pic,
                                        String terminal_type, String collect_pic, String collect_pic_two, String merchant_register_pic, String settle_account_type,
                                        String reg_capital,
                                        DataCallBack<BaseResponseBean> callBack) {

        Map<String, Object> params = new HashMap<>();
        params.put("store_no", store_no == null ? "" : store_no);
        params.put("quick_income", quick_income);
        params.put("merchant_type", merchant_type == null ? "" : merchant_type);
        params.put("merchant_name", merchant_name == null ? "" : merchant_name);
        params.put("user_wx", user_wx == null ? "" : user_wx);
        params.put("contact_name", contact_name == null ? "" : contact_name);
        params.put("legal_name", legal_name == null ? "" : legal_name);
        params.put("contact_mobile", contact_mobile == null ? "" : contact_mobile);
        params.put("legal_id_card_no", legal_id_card_no == null ? "" : legal_id_card_no);
        params.put("legal_id_card_start", legal_id_card_start == null ? "" : legal_id_card_start);
        params.put("legal_id_card_end", legal_id_card_end == null ? "" : legal_id_card_end);
        params.put("province", province == null ? "" : province);
        params.put("city", city == null ? "" : city);
        params.put("area", area == null ? "" : area);
        params.put("address", address == null ? "" : address);
        params.put("lng", lng == null ? "" : lng);
        params.put("lat", lat == null ? "" : lat);
        params.put("license_no", license_no == null ? "" : license_no);
        params.put("license_full_name", license_full_name == null ? "" : license_full_name);
        params.put("license_address", license_address == null ? "" : license_address);
        params.put("license_start", license_start == null ? "" : license_start);
        params.put("license_end", license_end == null ? "" : license_end);
        params.put("shop_type", shop_type == null ? "" : shop_type);
        params.put("settle_to", settle_to == null ? "" : settle_to);
        params.put("industry_id", industry_id == null ? "" : industry_id);
        params.put("rate", rate == null ? "" : rate);
        params.put("legal_flag", legal_flag == null ? "" : legal_flag);
        params.put("account_type", account_type == null ? "" : account_type);
        params.put("branch", branch == null ? "" : branch);
        params.put("holder", holder == null ? "" : holder);
        params.put("holder_id_card_no", holder_id_card_no == null ? "" : holder_id_card_no);
        params.put("holder_mobile", holder_mobile == null ? "" : holder_mobile);
        params.put("bank_card_no", bank_card_no == null ? "" : bank_card_no);
        params.put("door_pic", door_pic == null ? "" : door_pic);
        params.put("inside_pic", inside_pic == null ? "" : inside_pic);
        params.put("cashier_desk_pic", cashier_desk_pic == null ? "" : cashier_desk_pic);
        params.put("license_pic", license_pic == null ? "" : license_pic);
        params.put("bank_card_front_pic", bank_card_front_pic == null ? "" : bank_card_front_pic);
        params.put("legal_id_card_front_pic", legal_id_card_front_pic == null ? "" : legal_id_card_front_pic);
        params.put("legal_id_card_back_pic", legal_id_card_back_pic == null ? "" : legal_id_card_back_pic);
        params.put("legal_id_card_hand_pic", legal_id_card_hand_pic == null ? "" : legal_id_card_hand_pic);
        params.put("non_leg_settle_auth_pic", non_leg_settle_auth_pic == null ? "" : non_leg_settle_auth_pic);
        params.put("non_leg_idcard_front_pic", non_leg_idcard_front_pic == null ? "" : non_leg_idcard_front_pic);
        params.put("non_leg_idcard_back_pic", non_leg_idcard_back_pic == null ? "" : non_leg_idcard_back_pic);
        params.put("terminal_type", terminal_type == null ? "" : terminal_type);
        params.put("collect_pic", collect_pic == null ? "" : collect_pic);
        params.put("collect_pic_two", collect_pic_two == null ? "" : collect_pic_two);
        params.put("merchant_register_pic", merchant_register_pic == null ? "" : merchant_register_pic);
        params.put("mcc_code", "5812");
        params.put("settle_account_type", settle_account_type == null ? "" : settle_account_type);
        params.put("reg_capital", reg_capital == null ? "" : reg_capital);

        RetrofitHelper.getInstance().request(MethodType.POST, URLConst.saveProfile, params, new ResponseObserver<BaseResponseBean>() {
            @Override
            public void onSuccessful(BaseResponseBean bean, String msg) {
                callBack.onSuccessful(bean);
            }

            @Override
            public void onFailure(BaseResponseBean bean, String msg, String code) {
                callBack.onFailed(msg, code);
                ToastUtil.showShort(msg);
            }
        });

    }

    @Override
    public void requestEBankStoreSaveProfile(String store_no, String merchant_type, String merchant_name, String license_no,
                                             String license_full_name, String license_address, String license_start, String license_end, String license_pic,
                                             String province, String city, String area, String address, String lng, String lat, String contact_name,
                                             String contact_mobile, String legal_name, String legal_id_card_no,
                                             String legal_id_card_start, String legal_id_card_end, String bank,
                                             String branch, String branch_province, String branch_city,
                                             String bank_card_no, String holder_mobile, String unionpay,
                                             String door_pic, String bank_card_front_pic,
                                             String legal_id_card_front_pic, String legal_id_card_back_pic,
                                             String legal_id_card_hand_pic,
                                             String inside_pic, String cashier_desk_pic, String sign_pic, String mcc_code, DataCallBack<BaseResponseBean> callBack) {
        Map<String, Object> params = new HashMap<>();
        params.put("store_no", store_no == null ? "" : store_no);
        params.put("merchant_type", merchant_type == null ? "" : merchant_type);
        params.put("merchant_name", merchant_name == null ? "" : merchant_name);
        params.put("contact_name", contact_name == null ? "" : contact_name);
        params.put("license_no", license_no == null ? "" : license_no);
        params.put("license_full_name", license_full_name == null ? "" : license_full_name);
        params.put("license_address", license_address == null ? "" : license_address);
        params.put("license_start", license_start == null ? "" : license_start);
        params.put("license_end", license_end == null ? "" : license_end);
        params.put("license_pic", license_pic == null ? "" : license_pic);
        params.put("inside_pic", inside_pic == null ? "" : inside_pic);
        params.put("cashier_desk_pic", cashier_desk_pic == null ? "" : cashier_desk_pic);
        params.put("legal_name", legal_name == null ? "" : legal_name);
        params.put("contact_mobile", contact_mobile == null ? "" : contact_mobile);
        params.put("legal_id_card_no", legal_id_card_no == null ? "" : legal_id_card_no);
        params.put("legal_id_card_start", legal_id_card_start == null ? "" : legal_id_card_start);
        params.put("legal_id_card_end", legal_id_card_end == null ? "" : legal_id_card_end);
        params.put("province", province == null ? "" : province);
        params.put("city", city == null ? "" : city);
        params.put("area", area == null ? "" : area);
        params.put("address", address == null ? "" : address);
        params.put("bank", bank == null ? "" : bank);
        params.put("branch", branch == null ? "" : branch);
        params.put("branch_province", branch_province == null ? "" : branch_province);
        params.put("branch_city", branch_city == null ? "" : branch_city);
        params.put("holder_mobile", holder_mobile == null ? "" : holder_mobile);
        params.put("bank_card_no", bank_card_no == null ? "" : bank_card_no);
        params.put("door_pic", door_pic == null ? "" : door_pic);
        params.put("bank_card_front_pic", bank_card_front_pic == null ? "" : bank_card_front_pic);
        params.put("legal_id_card_front_pic", legal_id_card_front_pic == null ? "" : legal_id_card_front_pic);
        params.put("legal_id_card_back_pic", legal_id_card_back_pic == null ? "" : legal_id_card_back_pic);
        params.put("legal_id_card_hand_pic", legal_id_card_hand_pic == null ? "" : legal_id_card_hand_pic);
        params.put("mcc_code", mcc_code);
        params.put("unionpay", unionpay == null ? "" : unionpay);
        params.put("account_type", "0");
        params.put("lng", lng == null ? "" : lng);
        params.put("lat", lat == null ? "" : lat);
        params.put("sign_pic", sign_pic == null ? "" : sign_pic);

        RetrofitHelper.getInstance().request(MethodType.POST, URLConst.DianYinSaveProfile, params, new ResponseObserver<BaseResponseBean>() {
            @Override
            public void onSuccessful(BaseResponseBean bean, String msg) {
                callBack.onSuccessful(bean);
            }

            @Override
            public void onFailure(BaseResponseBean bean, String msg, String code) {
                callBack.onFailed(msg, code);
                ToastUtil.showShort(msg);
            }
        });
    }

    @Override
    public void requestEBankStoreIncomeProfile(String merchant_type, String merchant_name, String password, String license_no,
                                               String license_full_name, String license_address, String license_start, String license_end, String license_pic,
                                               String province, String city, String area,
                                               String address, String lng, String lat, String contact_name,
                                               String contact_mobile, String legal_name,
                                               String legal_id_card_no, String legal_id_card_start,
                                               String legal_id_card_end, String bank, String branch,
                                               String branch_province, String branch_city,
                                               String bank_card_no, String holder_mobile, String unionpay,
                                               String door_pic, String bank_card_front_pic,
                                               String legal_id_card_front_pic, String legal_id_card_back_pic,
                                               String legal_id_card_hand_pic, String inside_pic, String cashier_desk_pic, String sign_pic, String mcc_code,
                                               DataCallBack<BaseResponseBean> callBack) {
        Map<String, Object> params = new HashMap<>();
        params.put("merchant_type", merchant_type == null ? "" : merchant_type);
        params.put("merchant_name", merchant_name == null ? "" : merchant_name);
        params.put("password", password == null ? "" : password);
        params.put("contact_name", contact_name == null ? "" : contact_name);
        params.put("license_no", license_no == null ? "" : license_no);
        params.put("license_full_name", license_full_name == null ? "" : license_full_name);
        params.put("license_address", license_address == null ? "" : license_address);
        params.put("license_start", license_start == null ? "" : license_start);
        params.put("license_end", license_end == null ? "" : license_end);
        params.put("license_pic", license_pic == null ? "" : license_pic);
        params.put("inside_pic", inside_pic == null ? "" : inside_pic);
        params.put("cashier_desk_pic", cashier_desk_pic == null ? "" : cashier_desk_pic);
        params.put("legal_name", legal_name == null ? "" : legal_name);
        params.put("contact_mobile", contact_mobile == null ? "" : contact_mobile);
        params.put("legal_id_card_no", legal_id_card_no == null ? "" : legal_id_card_no);
        params.put("legal_id_card_start", legal_id_card_start == null ? "" : legal_id_card_start);
        params.put("legal_id_card_end", legal_id_card_end == null ? "" : legal_id_card_end);
        params.put("province", province == null ? "" : province);
        params.put("city", city == null ? "" : city);
        params.put("area", area == null ? "" : area);
        params.put("address", address == null ? "" : address);
        params.put("bank", bank == null ? "" : bank);
        params.put("branch", branch == null ? "" : branch);
        params.put("branch_province", branch_province == null ? "" : branch_province);
        params.put("branch_city", branch_city == null ? "" : branch_city);
        params.put("holder_mobile", holder_mobile == null ? "" : holder_mobile);
        params.put("bank_card_no", bank_card_no == null ? "" : bank_card_no);
        params.put("door_pic", door_pic == null ? "" : door_pic);
        params.put("bank_card_front_pic", bank_card_front_pic == null ? "" : bank_card_front_pic);
        params.put("legal_id_card_front_pic", legal_id_card_front_pic == null ? "" : legal_id_card_front_pic);
        params.put("legal_id_card_back_pic", legal_id_card_back_pic == null ? "" : legal_id_card_back_pic);
        params.put("legal_id_card_hand_pic", legal_id_card_hand_pic == null ? "" : legal_id_card_hand_pic);
        params.put("mcc_code", mcc_code);
        params.put("unionpay", unionpay == null ? "" : unionpay);
        params.put("account_type", "0");
        params.put("lng", lng == null ? "" : lng);
        params.put("lat", lat == null ? "" : lat);
        params.put("sign_pic", sign_pic == null ? "" : sign_pic);

        RetrofitHelper.getInstance().request(MethodType.POST, URLConst.DianYinIncomeProfile, params, new ResponseObserver<BaseResponseBean>() {
            @Override
            public void onSuccessful(BaseResponseBean bean, String msg) {
                callBack.onSuccessful(bean);
            }

            @Override
            public void onFailure(BaseResponseBean bean, String msg, String code) {
                callBack.onFailed(msg, code);
                ToastUtil.showShort(msg);
            }
        });
    }

    @Override
    public void requestMerchantShow(String id, DataCallBack<MerchantDetailsBean> callBack) {
        Map<String, Object> params = new HashMap<>();
        params.put("id", id);
        RetrofitHelper.getInstance().request(MethodType.POST, URLConst.MerchantShow, params, new ResponseObserver<MerchantDetailsBean>() {
            @Override
            public void onSuccessful(MerchantDetailsBean bean, String msg) {
                callBack.onSuccessful(bean);
            }

            @Override
            public void onFailure(MerchantDetailsBean bean, String msg, String code) {
                ToastUtil.showShort(msg);
            }
        });
    }

    @Override
    public void requestStoreProfile(String store_no, DataCallBack<StoreDeatilsBean> callBack) {
        Map<String, Object> params = new HashMap<>();
        params.put("store_no", store_no);
        RetrofitHelper.getInstance().request(MethodType.POST, URLConst.StoreProfile, params, new ResponseObserver<StoreDeatilsBean>() {
            @Override
            public void onSuccessful(StoreDeatilsBean bean, String msg) {
                callBack.onSuccessful(bean);
            }

            @Override
            public void onFailure(StoreDeatilsBean bean, String msg, String code) {
                ToastUtil.showShort(msg);
            }
        });
    }

    @Override
    public void requestReturncashOrder(String order_no, DataCallBack<ReturncashListBean> callBack) {
        Map<String, Object> params = new HashMap<>();
        params.put("order_no", order_no);
        RetrofitHelper.getInstance().request(MethodType.POST, URLConst.ReturncashOrder, params, new ResponseObserver<ReturncashListBean>() {
            @Override
            public void onSuccessful(ReturncashListBean bean, String msg) {
                callBack.onSuccessful(bean);
            }

            @Override
            public void onFailure(ReturncashListBean bean, String msg, String code) {
                ToastUtil.showShort(msg);
            }
        });
    }

    @Override
    public void requestSharefliterSum(DataCallBack<OrderFeeBean> callBack) {
        Map<String, Object> params = new HashMap<>();
        RetrofitHelper.getInstance().request(MethodType.POST, URLConst.SharefliterSum, params, new ResponseObserver<OrderFeeBean>() {
            @Override
            public void onSuccessful(OrderFeeBean bean, String msg) {
                callBack.onSuccessful(bean);
            }

            @Override
            public void onFailure(OrderFeeBean bean, String msg, String code) {
                ToastUtil.showShort(msg);
            }
        });
    }

    @Override
    public void requestSharefliterSumNew(DataCallBack<OrderFeeBean> callBack) {
        Map<String, Object> params = new HashMap<>();
        RetrofitHelper.getInstance().request(MethodType.POST, URLConst.fliterSumNew, params, new ResponseObserver<OrderFeeBean>() {
            @Override
            public void onSuccessful(OrderFeeBean bean, String msg) {
                callBack.onSuccessful(bean);
            }

            @Override
            public void onFailure(OrderFeeBean bean, String msg, String code) {
                ToastUtil.showShort(msg);
            }
        });
    }

    @Override
    public void requestReturnfliterSum(DataCallBack<OrderFeeBean> callBack) {
        Map<String, Object> params = new HashMap<>();
        RetrofitHelper.getInstance().request(MethodType.POST, URLConst.ReturnfliterSum, params, new ResponseObserver<OrderFeeBean>() {
            @Override
            public void onSuccessful(OrderFeeBean bean, String msg) {
                callBack.onSuccessful(bean);
            }

            @Override
            public void onFailure(OrderFeeBean bean, String msg, String code) {
                ToastUtil.showShort(msg);
            }
        });
    }

    @Override
    public void requestStoreFilterCount(DataCallBack<StoreActiveBean> callBack) {
        Map<String, Object> params = new HashMap<>();
        RetrofitHelper.getInstance().request(MethodType.POST, URLConst.StoreFilterCount, params, new ResponseObserver<StoreActiveBean>() {
            @Override
            public void onSuccessful(StoreActiveBean bean, String msg) {
                callBack.onSuccessful(bean);
            }

            @Override
            public void onFailure(StoreActiveBean bean, String msg, String code) {
                ToastUtil.showShort(msg);
            }
        });
    }

    @Override
    public void requestStoreFilterIndex(int page, String type, DataCallBack<ActiveListBean> callBack) {
        Map<String, Object> params = new HashMap<>();
        params.put("page", page);
        params.put("limit", 20);
        params.put("type", type);//(new,high_quality,silence)
        RetrofitHelper.getInstance().request(MethodType.POST, URLConst.StoreFilterIndex, params, new ResponseObserver<ActiveListBean>() {
            @Override
            public void onSuccessful(ActiveListBean bean, String msg) {
                callBack.onSuccessful(bean);
            }

            @Override
            public void onFailure(ActiveListBean bean, String msg, String code) {
                ToastUtil.showShort(msg);
            }
        });
    }

    @Override
    public void requestGetStoreHuaBeiRate(String store_no, DataCallBack<StoreHuaBeiRateBean> callBack) {
        Map<String, Object> params = new HashMap<>();
        params.put("store_no", store_no);
        RetrofitHelper.getInstance().request(MethodType.POST, URLConst.GetStoreHuaBeiRate, params, new ResponseObserver<StoreHuaBeiRateBean>() {
            @Override
            public void onSuccessful(StoreHuaBeiRateBean bean, String msg) {
                callBack.onSuccessful(bean);
            }

            @Override
            public void onFailure(StoreHuaBeiRateBean bean, String msg, String code) {
                ToastUtil.showShort(msg);
            }
        });
    }

    @Override
    public void requestSetStoreHuaBeiRate(String store_no, String dy_rate, DataCallBack<BaseResponseBean> callBack) {
        Map<String, Object> params = new HashMap<>();
        params.put("store_no", store_no);
        params.put("dy_rate", dy_rate);
        RetrofitHelper.getInstance().request(MethodType.POST, URLConst.SetStoreHuaBeiRate, params, new ResponseObserver<BaseResponseBean>() {
            @Override
            public void onSuccessful(BaseResponseBean bean, String msg) {
                callBack.onSuccessful(bean);
            }

            @Override
            public void onFailure(BaseResponseBean bean, String msg, String code) {
                ToastUtil.showShort(msg);
            }
        });
    }

    @Override
    public void requestGetProvince(DataCallBack<AreaListBean> callBack) {
        Map<String, Object> params = new HashMap<>();
        RetrofitHelper.getInstance().request(MethodType.POST, URLConst.GetProvince, params, new ResponseObserver<AreaListBean>() {
            @Override
            public void onSuccessful(AreaListBean bean, String msg) {
                callBack.onSuccessful(bean);
            }

            @Override
            public void onFailure(AreaListBean bean, String msg, String code) {
                ToastUtil.showShort(msg);
            }
        });
    }

    @Override
    public void requestGetCity(int province_code, DataCallBack<AreaListBean> callBack) {
        Map<String, Object> params = new HashMap<>();
        params.put("province_code", province_code);
        RetrofitHelper.getInstance().request(MethodType.POST, URLConst.GetCity, params, new ResponseObserver<AreaListBean>() {
            @Override
            public void onSuccessful(AreaListBean bean, String msg) {
                callBack.onSuccessful(bean);
            }

            @Override
            public void onFailure(AreaListBean bean, String msg, String code) {
                ToastUtil.showShort(msg);
            }
        });
    }

    @Override
    public void requestGetArea(int city_code, DataCallBack<AreaListBean> callBack) {
        Map<String, Object> params = new HashMap<>();
        params.put("city_code", city_code);
        RetrofitHelper.getInstance().request(MethodType.POST, URLConst.GetArea, params, new ResponseObserver<AreaListBean>() {
            @Override
            public void onSuccessful(AreaListBean bean, String msg) {
                callBack.onSuccessful(bean);
            }

            @Override
            public void onFailure(AreaListBean bean, String msg, String code) {
                ToastUtil.showShort(msg);
            }
        });
    }

    @Override
    public void requestGetBankName(String bank_name, DataCallBack<AreaListBean> callBack) {
        Map<String, Object> params = new HashMap<>();
        params.put("bank_name", bank_name == null ? "" : bank_name);
        RetrofitHelper.getInstance().request(MethodType.POST, URLConst.GetBankName, params, new ResponseObserver<AreaListBean>() {
            @Override
            public void onSuccessful(AreaListBean bean, String msg) {
                callBack.onSuccessful(bean);
            }

            @Override
            public void onFailure(AreaListBean bean, String msg, String code) {
                ToastUtil.showShort(msg);
            }
        });
    }

    @Override
    public void requestGetBranchBankName(int page, String key, String bank_name, String province_name, String city_name, DataCallBack<BranchBrankListBean> callBack) {
        Map<String, Object> params = new HashMap<>();
        params.put("page", page);
        params.put("limit", 20);
        params.put("key", key);
        params.put("bank_name", bank_name == null ? "" : bank_name);
        params.put("province_name", province_name == null ? "" : province_name);
        params.put("city_name", city_name == null ? "" : city_name);
        RetrofitHelper.getInstance().request(MethodType.POST, URLConst.GetBankCode, params, new ResponseObserver<BranchBrankListBean>() {
            @Override
            public void onSuccessful(BranchBrankListBean bean, String msg) {
                callBack.onSuccessful(bean);
            }

            @Override
            public void onFailure(BranchBrankListBean bean, String msg, String code) {
                ToastUtil.showShort(msg);
            }
        });
    }

    @Override
    public void requestChangeStoreCloseStatus(String store_no, String is_close, DataCallBack<BaseResponseBean> callBack) {
        Map<String, Object> params = new HashMap<>();
        params.put("store_no", store_no);
        params.put("is_close", is_close);
        RetrofitHelper.getInstance().request(MethodType.POST, URLConst.ChangeStoreCloseStatus, params, new ResponseObserver<BaseResponseBean>() {
            @Override
            public void onSuccessful(BaseResponseBean bean, String msg) {
                callBack.onSuccessful(bean);
            }

            @Override
            public void onFailure(BaseResponseBean bean, String msg, String code) {
                ToastUtil.showShort(msg);
            }
        });
    }

    @Override
    public void requestChangeAgentWithdrawLimit(String set_agent_id, String limit, String agent_line, DataCallBack<BaseResponseBean> callBack) {
        Map<String, Object> params = new HashMap<>();
        params.put("set_agent_id", set_agent_id);
        params.put("limit", limit);
        params.put("agent_line", agent_line);
        RetrofitHelper.getInstance().request(MethodType.POST, URLConst.ChangeAgentWithdrawLimit, params, new ResponseObserver<BaseResponseBean>() {
            @Override
            public void onSuccessful(BaseResponseBean bean, String msg) {
                callBack.onSuccessful(bean);
            }

            @Override
            public void onFailure(BaseResponseBean bean, String msg, String code) {
                ToastUtil.showShort(msg);
            }
        });
    }

    @Override
    public void requestChangeAgentLoginLimit(String set_agent_id, String limit, String agent_line, DataCallBack<BaseResponseBean> callBack) {
        Map<String, Object> params = new HashMap<>();
        params.put("set_agent_id", set_agent_id);
        params.put("limit", limit);
        params.put("agent_line", agent_line);
        RetrofitHelper.getInstance().request(MethodType.POST, URLConst.changeAgentLoginLimit, params, new ResponseObserver<BaseResponseBean>() {
            @Override
            public void onSuccessful(BaseResponseBean bean, String msg) {
                callBack.onSuccessful(bean);
            }

            @Override
            public void onFailure(BaseResponseBean bean, String msg, String code) {
                ToastUtil.showShort(msg);
            }
        });
    }

    @Override
    public void requestChangeAgentIncomeLimit(String set_agent_id, String limit, String agent_line, DataCallBack<BaseResponseBean> callBack) {
        Map<String, Object> params = new HashMap<>();
        params.put("set_agent_id", set_agent_id);
        params.put("limit", limit);
        params.put("agent_line", agent_line);
        RetrofitHelper.getInstance().request(MethodType.POST, URLConst.changeAgentIncomeLimit, params, new ResponseObserver<BaseResponseBean>() {
            @Override
            public void onSuccessful(BaseResponseBean bean, String msg) {
                callBack.onSuccessful(bean);
            }

            @Override
            public void onFailure(BaseResponseBean bean, String msg, String code) {
                ToastUtil.showShort(msg);
            }
        });
    }

    @Override
    public void requestChangeAgentInviteLimit(String set_agent_id, String limit, String agent_line, DataCallBack<BaseResponseBean> callBack) {
        Map<String, Object> params = new HashMap<>();
        params.put("set_agent_id", set_agent_id);
        params.put("limit", limit);
        params.put("agent_line", agent_line);
        RetrofitHelper.getInstance().request(MethodType.POST, URLConst.changeAgentInviteLimit, params, new ResponseObserver<BaseResponseBean>() {
            @Override
            public void onSuccessful(BaseResponseBean bean, String msg) {
                callBack.onSuccessful(bean);
            }

            @Override
            public void onFailure(BaseResponseBean bean, String msg, String code) {
                ToastUtil.showShort(msg);
            }
        });
    }

    @Override
    public void requestAgentShow(String id, DataCallBack<AgentShowBean> callBack) {
        Map<String, Object> params = new HashMap<>();
        params.put("id", id);
        RetrofitHelper.getInstance().request(MethodType.POST, URLConst.AgentShow, params, new ResponseObserver<AgentShowBean>() {
            @Override
            public void onSuccessful(AgentShowBean bean, String msg) {
                callBack.onSuccessful(bean);
            }

            @Override
            public void onFailure(AgentShowBean bean, String msg, String code) {
                ToastUtil.showShort(msg);
            }
        });
    }

    @Override
    public void requestAgentGetParents(String check_agent_id, DataCallBack<AgentRankListBean> callBack) {
        Map<String, Object> params = new HashMap<>();
        params.put("check_agent_id", check_agent_id);
        RetrofitHelper.getInstance().request(MethodType.POST, URLConst.GetParents, params, new ResponseObserver<AgentRankListBean>() {
            @Override
            public void onSuccessful(AgentRankListBean bean, String msg) {
                callBack.onSuccessful(bean);
            }

            @Override
            public void onFailure(AgentRankListBean bean, String msg, String code) {
                ToastUtil.showShort(msg);
            }
        });
    }

    @Override
    public void requestAgentGetChilds(String check_agent_id, DataCallBack<AgentRankListBean> callBack) {
        Map<String, Object> params = new HashMap<>();
        params.put("check_agent_id", check_agent_id);
        RetrofitHelper.getInstance().request(MethodType.POST, URLConst.GetChilds, params, new ResponseObserver<AgentRankListBean>() {
            @Override
            public void onSuccessful(AgentRankListBean bean, String msg) {
                callBack.onSuccessful(bean);
            }

            @Override
            public void onFailure(AgentRankListBean bean, String msg, String code) {
                ToastUtil.showShort(msg);
            }
        });
    }

    @Override
    public void requestGetStoreStatistics(DataCallBack<StoreStatisticsBean> callBack) {
        Map<String, Object> params = new HashMap<>();
        RetrofitHelper.getInstance().request(MethodType.POST, URLConst.GetStoreStatistics, params, new ResponseObserver<StoreStatisticsBean>() {
            @Override
            public void onSuccessful(StoreStatisticsBean bean, String msg) {
                callBack.onSuccessful(bean);
            }

            @Override
            public void onFailure(StoreStatisticsBean bean, String msg, String code) {
                ToastUtil.showShort(msg);
            }
        });
    }

    @Override
    public void requestGetStoreStatisticsEach(int page, String type, String merchant_field_value, String start_time, String end_time, DataCallBack<MerchantDetailsListBean> callBack) {
        Map<String, Object> params = new HashMap<>();
        params.put("page", page);
        params.put("type", type);
        params.put("limit", 20);
        params.put("merchant_field_value", merchant_field_value);
        params.put("start_time", start_time);
        params.put("end_time", end_time);
        RetrofitHelper.getInstance().request(MethodType.POST, URLConst.GetStoreStatisticsEach, params, new ResponseObserver<MerchantDetailsListBean>() {
            @Override
            public void onSuccessful(MerchantDetailsListBean bean, String msg) {
                callBack.onSuccessful(bean);
            }

            @Override
            public void onFailure(MerchantDetailsListBean bean, String msg, String code) {
                callBack.onFailed(msg, code);
                ToastUtil.showShort(msg);
            }
        });
    }

    @Override
    public void requestSaveNewStatus(String message_no, DataCallBack<BaseResponseBean> callBack) {
        Map<String, Object> params = new HashMap<>();
        params.put("message_no", message_no);
        RetrofitHelper.getInstance().request(MethodType.POST, URLConst.saveNewStatus, params, new ResponseObserver<BaseResponseBean>() {
            @Override
            public void onSuccessful(BaseResponseBean bean, String msg) {
                callBack.onSuccessful(bean);
            }

            @Override
            public void onFailure(BaseResponseBean bean, String msg, String code) {
                ToastUtil.showShort(msg);
            }
        });
    }

    @Override
    public void requestClientVersion(DataCallBack<VersionBean> callBack) {
        Map<String, Object> params = new HashMap<>();
        params.put("oem_no", MyApplication.getOem_no());
        params.put("app_type", "Work");
        RetrofitHelper.getInstance().request(MethodType.POST, URLConst.clientVersion, params, new ResponseObserver<VersionBean>() {
            @Override
            public void onSuccessful(VersionBean bean, String msg) {
                callBack.onSuccessful(bean);
            }

            @Override
            public void onFailure(VersionBean bean, String msg, String code) {
                ToastUtil.showShort(msg);
            }
        });
    }

    @Override
    public void requestMoneyDetailIsNew(DataCallBack<IncomeNewBean> callBack) {
        RetrofitHelper.getInstance().request(MethodType.POST, URLConst.moneyDetailIsNew, null, new ResponseObserver<IncomeNewBean>() {
            @Override
            public void onSuccessful(IncomeNewBean bean, String msg) {
                callBack.onSuccessful(bean);
            }

            @Override
            public void onFailure(IncomeNewBean bean, String msg, String code) {
                ToastUtil.showShort(msg);
            }
        });
    }

    @Override
    public void requestMoneyDetailIndexNew(int page, String money_type, String start_date, String end_date, DataCallBack<IncomeListBean> callBack) {
        Map<String, Object> params = new HashMap<>();
        params.put("page", page);
        params.put("limit", 20);
        params.put("money_type", money_type);
        params.put("start_time", start_date);
        params.put("end_time", end_date);
        RetrofitHelper.getInstance().request(MethodType.POST, URLConst.moneyDetailIndexNew, params, new ResponseObserver<IncomeListBean>() {
            @Override
            public void onSuccessful(IncomeListBean bean, String msg) {
                callBack.onSuccessful(bean);
            }

            @Override
            public void onFailure(IncomeListBean bean, String msg, String code) {
                ToastUtil.showShort(msg);
            }
        });
    }

    @Override
    public void requestChildDeviceNotBelong(String is_send, int page, String child_agent_id, String type, DataCallBack<TransferAgentNewBean> callBack) {
        Map<String, Object> params = new HashMap<>();
        params.put("is_send", is_send);
        params.put("page", page);
        params.put("limit", -1);
        params.put("child_agent_id", child_agent_id);
        params.put("type", type);
        RetrofitHelper.getInstance().request(MethodType.POST, URLConst.childDeviceNotBelong, params, new ResponseObserver<TransferAgentNewBean>() {
            @Override
            public void onSuccessful(TransferAgentNewBean bean, String msg) {
                callBack.onSuccessful(bean);
            }

            @Override
            public void onFailure(TransferAgentNewBean bean, String msg, String code) {
                ToastUtil.showShort(msg);
            }
        });
    }

    @Override
    public void requestGoodsIndex(int page, DataCallBack<ProductListBean> callBack) {
        Map<String, Object> params = new HashMap<>();
        params.put("page", page);
        params.put("limit", -1);
        RetrofitHelper.getInstance().request(MethodType.POST, URLConst.AgentGoodsIndex, params, new ResponseObserver<ProductListBean>() {
            @Override
            public void onSuccessful(ProductListBean bean, String msg) {
                callBack.onSuccessful(bean);
            }

            @Override
            public void onFailure(ProductListBean bean, String msg, String code) {
                ToastUtil.showShort(msg);
            }
        });
    }

    @Override
    public void requestStoreOrderAdd(String course_id, DataCallBack<CreateOrderBean> callBack) {
        Map<String, Object> params = new HashMap<>();
        params.put("course_id", course_id);
        RetrofitHelper.getInstance().request(MethodType.POST, URLConst.AgentOrderAdd, params, new ResponseObserver<CreateOrderBean>() {
            @Override
            public void onSuccessful(CreateOrderBean bean, String msg) {
                callBack.onSuccessful(bean);
            }

            @Override
            public void onFailure(CreateOrderBean bean, String msg, String code) {
                callBack.onFailed(msg, code);
                ToastUtil.showShort(msg);
            }
        });
    }

    @Override
    public void requestIntegralCourseOrderIndex(int page, String status, DataCallBack<MyCourseListBean> callBack) {
        Map<String, Object> params = new HashMap<>();
        params.put("page", page);
        params.put("limit", 20);
        params.put("status", status);
        RetrofitHelper.getInstance().request(MethodType.POST, URLConst.AgentOrderIndex, params, new ResponseObserver<MyCourseListBean>() {
            @Override
            public void onSuccessful(MyCourseListBean bean, String msg) {
                callBack.onSuccessful(bean);
            }

            @Override
            public void onFailure(MyCourseListBean bean, String msg, String code) {
                callBack.onFailed(msg, code);
                ToastUtil.showShort(msg);
            }
        });
    }


    @Override
    public void requestStoreDelivery(String shop_order_id, String consign_delivery_type, String consign_delivery_no, DataCallBack<BaseResponseBean> callBack) {
        Map<String, Object> params = new HashMap<>();
        params.put("shop_order_id", shop_order_id);
        params.put("consign_delivery_type", consign_delivery_type);
        params.put("consign_delivery_no", consign_delivery_no);
        RetrofitHelper.getInstance().request(MethodType.POST, URLConst.AgentOrderDelivery, params, new ResponseObserver<BaseResponseBean>() {
            @Override
            public void onSuccessful(BaseResponseBean bean, String msg) {
                callBack.onSuccessful(bean);
            }

            @Override
            public void onFailure(BaseResponseBean bean, String msg, String code) {
                ToastUtil.showShort(msg);
            }
        });
    }

    @Override
    public void requestStoreDeliveryShip(String shop_order_id, String consign_delivery_type, String consign_delivery_no, DataCallBack<BaseResponseBean> callBack) {
        Map<String, Object> params = new HashMap<>();
        params.put("id", shop_order_id);
        params.put("consign_delivery_type", consign_delivery_type);
        params.put("consign_delivery_no", consign_delivery_no);
        RetrofitHelper.getInstance().request(MethodType.POST, URLConst.AgentExchangeDeviceShip, params, new ResponseObserver<BaseResponseBean>() {
            @Override
            public void onSuccessful(BaseResponseBean bean, String msg) {
                callBack.onSuccessful(bean);
            }

            @Override
            public void onFailure(BaseResponseBean bean, String msg, String code) {
                ToastUtil.showShort(msg);
            }
        });
    }

    @Override
    public void requestStoreSign(String shop_order_id, DataCallBack<BaseResponseBean> callBack) {
        Map<String, Object> params = new HashMap<>();
        params.put("shop_order_id", shop_order_id);
        RetrofitHelper.getInstance().request(MethodType.POST, URLConst.AgentOrderSign, params, new ResponseObserver<BaseResponseBean>() {
            @Override
            public void onSuccessful(BaseResponseBean bean, String msg) {
                callBack.onSuccessful(bean);
            }

            @Override
            public void onFailure(BaseResponseBean bean, String msg, String code) {
                ToastUtil.showShort(msg);
            }
        });
    }

    @Override
    public void requestStoreSignReceipt(String shop_order_id, DataCallBack<BaseResponseBean> callBack) {
        Map<String, Object> params = new HashMap<>();
        params.put("id", shop_order_id);
        RetrofitHelper.getInstance().request(MethodType.POST, URLConst.AgentExchangeDeviceReceipt, params, new ResponseObserver<BaseResponseBean>() {
            @Override
            public void onSuccessful(BaseResponseBean bean, String msg) {
                callBack.onSuccessful(bean);
            }

            @Override
            public void onFailure(BaseResponseBean bean, String msg, String code) {
                ToastUtil.showShort(msg);
            }
        });
    }

    @Override
    public void requesPrepareGoodsConfig(String order_no, int shop_goods_count, List<PrepareConfigBean.DataBean> device_group, DataCallBack<BaseResponseBean> callBack) {
        Map<String, Object> params = new HashMap<>();
        params.put("id", order_no);
        params.put("shop_goods_count", shop_goods_count);
        params.put("device_group", new Gson().toJson(device_group));
        RetrofitHelper.getInstance().request(MethodType.POST, URLConst.ShopOrderPrepare, params, new ResponseObserver<BaseResponseBean>() {
            @Override
            public void onSuccessful(BaseResponseBean bean, String msg) {
                callBack.onSuccessful(bean);
            }

            @Override
            public void onFailure(BaseResponseBean bean, String msg, String code) {
                callBack.onFailed(msg, code);
                ToastUtil.showShort(msg);
            }
        });
    }

    @Override
    public void requesAgentExchangeDevicePrepare(String order_no, int shop_goods_count, List<PrepareConfigBean.DataBean> device_group, DataCallBack<BaseResponseBean> callBack) {
        Map<String, Object> params = new HashMap<>();
        params.put("id", order_no);
        params.put("shop_goods_count", shop_goods_count);
        params.put("device_group", new Gson().toJson(device_group));
        RetrofitHelper.getInstance().request(MethodType.POST, URLConst.AgentExchangeDevicePrepare, params, new ResponseObserver<BaseResponseBean>() {
            @Override
            public void onSuccessful(BaseResponseBean bean, String msg) {
                callBack.onSuccessful(bean);
            }

            @Override
            public void onFailure(BaseResponseBean bean, String msg, String code) {
                callBack.onFailed(msg, code);
                ToastUtil.showShort(msg);
            }
        });
    }

    @Override
    public void requestAgentExchangeDeviceAdd(String agent_address_id, String num, DataCallBack<BaseResponseBean> callBack) {
        Map<String, Object> params = new HashMap<>();
        params.put("agent_address_id", agent_address_id);
        params.put("num", num);
        RetrofitHelper.getInstance().request(MethodType.POST, URLConst.AgentExchangeDeviceAdd, params, new ResponseObserver<BaseResponseBean>() {
            @Override
            public void onSuccessful(BaseResponseBean bean, String msg) {
                callBack.onSuccessful(bean);
            }

            @Override
            public void onFailure(BaseResponseBean bean, String msg, String code) {
                callBack.onFailed(msg, code);
                ToastUtil.showShort(msg);
            }
        });
    }

    @Override
    public void requestOrderPay(String id, String pay_type, DataCallBack<AliPayDataBean> callBack) {
        Map<String, Object> params = new HashMap<>();
        params.put("id", id);
        params.put("pay_type", pay_type);
        RetrofitHelper.getInstance().request(MethodType.POST, URLConst.AgentShopOrderPay, params, new ResponseObserver<AliPayDataBean>() {
            @Override
            public void onSuccessful(AliPayDataBean bean, String msg) {
                callBack.onSuccessful(bean);
            }

            @Override
            public void onFailure(AliPayDataBean bean, String msg, String code) {
                callBack.onFailed(msg, code);
                ToastUtil.showShort(msg);
            }
        });
    }

    @Override
    public void requestIntegralPay(String id, DataCallBack<BaseResponseBean> callBack) {
        Map<String, Object> params = new HashMap<>();
        params.put("order_id", id);
        RetrofitHelper.getInstance().request(MethodType.POST, URLConst.integralPay, params, new ResponseObserver<AliPayDataBean>() {
            @Override
            public void onSuccessful(AliPayDataBean bean, String msg) {
                callBack.onSuccessful(bean);
            }

            @Override
            public void onFailure(AliPayDataBean bean, String msg, String code) {
                callBack.onFailed(msg, code);
                ToastUtil.showShort(msg);
            }
        });
    }

    @Override
    public void requestShopIntegralPay(String id, DataCallBack<BaseResponseBean> callBack) {
        Map<String, Object> params = new HashMap<>();
        params.put("order_id", id);
        RetrofitHelper.getInstance().request(MethodType.POST, URLConst.shopintegralPay, params, new ResponseObserver<AliPayDataBean>() {
            @Override
            public void onSuccessful(AliPayDataBean bean, String msg) {
                callBack.onSuccessful(bean);
            }

            @Override
            public void onFailure(AliPayDataBean bean, String msg, String code) {
                callBack.onFailed(msg, code);
                ToastUtil.showShort(msg);
            }
        });
    }

    @Override
    public void requestIntegralOrderPay(String id, String integral_amount, DataCallBack<AliPayOrderDataBean> callBack) {
        Map<String, Object> params = new HashMap<>();
        params.put("order_id", id);
        params.put("integral_amount", integral_amount);
        RetrofitHelper.getInstance().request(MethodType.POST, URLConst.IntegralShopOrderPay, params, new ResponseObserver<AliPayOrderDataBean>() {
            @Override
            public void onSuccessful(AliPayOrderDataBean bean, String msg) {
                callBack.onSuccessful(bean);
            }

            @Override
            public void onFailure(AliPayOrderDataBean bean, String msg, String code) {
                callBack.onFailed(msg, code);
                ToastUtil.showShort(msg);
            }
        });
    }

    @Override
    public void requestWXOrderPay(String id, String pay_type, DataCallBack<WXPayDataBean> callBack) {
        Map<String, Object> params = new HashMap<>();
        params.put("id", id);
        params.put("pay_type", pay_type);
        RetrofitHelper.getInstance().request(MethodType.POST, URLConst.AgentShopWXOrderPay, params, new ResponseObserver<WXPayDataBean>() {
            @Override
            public void onSuccessful(WXPayDataBean bean, String msg) {
                callBack.onSuccessful(bean);
            }

            @Override
            public void onFailure(WXPayDataBean bean, String msg, String code) {
                callBack.onFailed(msg, code);
                ToastUtil.showShort(msg);
            }
        });
    }

    @Override
    public void requestIntegralWXOrderPay(String id, String integral_amount, DataCallBack<WXPayOrderDataBean> callBack) {
        Map<String, Object> params = new HashMap<>();
        params.put("order_id", id);
        params.put("integral_amount", integral_amount);
        RetrofitHelper.getInstance().request(MethodType.POST, URLConst.IntegralOrderwxpay, params, new ResponseObserver<WXPayOrderDataBean>() {
            @Override
            public void onSuccessful(WXPayOrderDataBean bean, String msg) {
                callBack.onSuccessful(bean);
            }

            @Override
            public void onFailure(WXPayOrderDataBean bean, String msg, String code) {
                callBack.onFailed(msg, code);
                ToastUtil.showShort(msg);
            }
        });
    }

    @Override
    public void requestOrderPayStatus(String id, DataCallBack<PayStatusBean> callBack) {
        Map<String, Object> params = new HashMap<>();
        params.put("order_id", id);
        RetrofitHelper.getInstance().request(MethodType.POST, URLConst.AgentShopOrderPayStatus, params, new ResponseObserver<PayStatusBean>() {
            @Override
            public void onSuccessful(PayStatusBean bean, String msg) {
                callBack.onSuccessful(bean);
            }

            @Override
            public void onFailure(PayStatusBean bean, String msg, String code) {
                callBack.onFailed(msg, code);
                ToastUtil.showShort(msg);
            }
        });
    }

    @Override
    public void requestRechargeOrderPayStatus(String id, DataCallBack<PayStatusBean> callBack) {
        Map<String, Object> params = new HashMap<>();
        params.put("id", id);
        RetrofitHelper.getInstance().request(MethodType.POST, URLConst.ExchangeNumberBuypayStatus, params, new ResponseObserver<PayStatusBean>() {
            @Override
            public void onSuccessful(PayStatusBean bean, String msg) {
                callBack.onSuccessful(bean);
            }

            @Override
            public void onFailure(PayStatusBean bean, String msg, String code) {
                callBack.onFailed(msg, code);
                ToastUtil.showShort(msg);
            }
        });
    }

    @Override
    public void requestIntegralOrderPayStatus(String id, DataCallBack<ShopPayStatusBean> callBack) {
        Map<String, Object> params = new HashMap<>();
        params.put("order_id", id);
        RetrofitHelper.getInstance().request(MethodType.POST, URLConst.IntegralShopOrderPayStatus, params, new ResponseObserver<ShopPayStatusBean>() {
            @Override
            public void onSuccessful(ShopPayStatusBean bean, String msg) {
                callBack.onSuccessful(bean);
            }

            @Override
            public void onFailure(ShopPayStatusBean bean, String msg, String code) {
                callBack.onFailed(msg, code);
                ToastUtil.showShort(msg);
            }
        });
    }

    @Override
    public void requestDirectorBonusesLog(int page, DataCallBack<ShareListBean> callBack) {
        Map<String, Object> params = new HashMap<>();
        params.put("page", page);
        params.put("limit", 20);
        RetrofitHelper.getInstance().request(MethodType.POST, URLConst.DirectorBonusesLogIndex, params, new ResponseObserver<ShareListBean>() {
            @Override
            public void onSuccessful(ShareListBean bean, String msg) {
                callBack.onSuccessful(bean);
            }

            @Override
            public void onFailure(ShareListBean bean, String msg, String code) {
                callBack.onFailed(msg, code);
                ToastUtil.showShort(msg);
            }
        });
    }

    @Override
    public void requestDirectorBonusesIndex(int page, DataCallBack<ShareIntoListBean> callBack) {
        Map<String, Object> params = new HashMap<>();
        params.put("page", page);
        params.put("limit", 20);
        RetrofitHelper.getInstance().request(MethodType.POST, URLConst.MarketShareBonusIndex, params, new ResponseObserver<ShareIntoListBean>() {
            @Override
            public void onSuccessful(ShareIntoListBean bean, String msg) {
                callBack.onSuccessful(bean);
            }

            @Override
            public void onFailure(ShareIntoListBean bean, String msg, String code) {
                callBack.onFailed(msg, code);
                ToastUtil.showShort(msg);
            }
        });
    }

    @Override
    public void requestDirectorBonusesInfo(String id, DataCallBack<ShareDetailsBean> callBack) {
        Map<String, Object> params = new HashMap<>();
        params.put("id", id);
        RetrofitHelper.getInstance().request(MethodType.POST, URLConst.DirectorBonusesLogInfo, params, new ResponseObserver<ShareDetailsBean>() {
            @Override
            public void onSuccessful(ShareDetailsBean bean, String msg) {
                callBack.onSuccessful(bean);
            }

            @Override
            public void onFailure(ShareDetailsBean bean, String msg, String code) {
                callBack.onFailed(msg, code);
                ToastUtil.showShort(msg);
            }
        });
    }

    @Override
    public void requestShareToday(DataCallBack<RankingListBean> callBack) {
        Map<String, Object> params = new HashMap<>();
        RetrofitHelper.getInstance().request(MethodType.POST, URLConst.LeaderboardShareToday, params, new ResponseObserver<RankingListBean>() {
            @Override
            public void onSuccessful(RankingListBean bean, String msg) {
                callBack.onSuccessful(bean);
            }

            @Override
            public void onFailure(RankingListBean bean, String msg, String code) {
                callBack.onFailed(msg, code);
                ToastUtil.showShort(msg);
            }
        });
    }

    @Override
    public void requestTradeToday(DataCallBack<RankingListBean> callBack) {
        Map<String, Object> params = new HashMap<>();
        RetrofitHelper.getInstance().request(MethodType.POST, URLConst.LeaderboardTradeToday, params, new ResponseObserver<RankingListBean>() {
            @Override
            public void onSuccessful(RankingListBean bean, String msg) {
                callBack.onSuccessful(bean);
            }

            @Override
            public void onFailure(RankingListBean bean, String msg, String code) {
                callBack.onFailed(msg, code);
                ToastUtil.showShort(msg);
            }
        });
    }

    @Override
    public void requestShareMonth(DataCallBack<RankingListBean> callBack) {
        Map<String, Object> params = new HashMap<>();
        RetrofitHelper.getInstance().request(MethodType.POST, URLConst.LeaderboardShareMonth, params, new ResponseObserver<RankingListBean>() {
            @Override
            public void onSuccessful(RankingListBean bean, String msg) {
                callBack.onSuccessful(bean);
            }

            @Override
            public void onFailure(RankingListBean bean, String msg, String code) {
                callBack.onFailed(msg, code);
                ToastUtil.showShort(msg);
            }
        });
    }

    @Override
    public void requestTradeMonth(DataCallBack<RankingListBean> callBack) {
        Map<String, Object> params = new HashMap<>();
        RetrofitHelper.getInstance().request(MethodType.POST, URLConst.LeaderboardTradeMonth, params, new ResponseObserver<RankingListBean>() {
            @Override
            public void onSuccessful(RankingListBean bean, String msg) {
                callBack.onSuccessful(bean);
            }

            @Override
            public void onFailure(RankingListBean bean, String msg, String code) {
                callBack.onFailed(msg, code);
                ToastUtil.showShort(msg);
            }
        });
    }

    @Override
    public void requestTeamShareToday(DataCallBack<RankingListBean> callBack) {
        Map<String, Object> params = new HashMap<>();
        RetrofitHelper.getInstance().request(MethodType.POST, URLConst.LeaderboardTeamEnableToday, params, new ResponseObserver<RankingListBean>() {
            @Override
            public void onSuccessful(RankingListBean bean, String msg) {
                callBack.onSuccessful(bean);
            }

            @Override
            public void onFailure(RankingListBean bean, String msg, String code) {
                callBack.onFailed(msg, code);
                ToastUtil.showShort(msg);
            }
        });
    }

    @Override
    public void requestTeamTradeToday(DataCallBack<RankingListBean> callBack) {
        Map<String, Object> params = new HashMap<>();
        RetrofitHelper.getInstance().request(MethodType.POST, URLConst.LeaderboardTeamTradeToday, params, new ResponseObserver<RankingListBean>() {
            @Override
            public void onSuccessful(RankingListBean bean, String msg) {
                callBack.onSuccessful(bean);
            }

            @Override
            public void onFailure(RankingListBean bean, String msg, String code) {
                callBack.onFailed(msg, code);
                ToastUtil.showShort(msg);
            }
        });
    }

    @Override
    public void requestTeamShareMonth(DataCallBack<RankingListBean> callBack) {
        Map<String, Object> params = new HashMap<>();
        RetrofitHelper.getInstance().request(MethodType.POST, URLConst.LeaderboardTeamEnableMonth, params, new ResponseObserver<RankingListBean>() {
            @Override
            public void onSuccessful(RankingListBean bean, String msg) {
                callBack.onSuccessful(bean);
            }

            @Override
            public void onFailure(RankingListBean bean, String msg, String code) {
                callBack.onFailed(msg, code);
                ToastUtil.showShort(msg);
            }
        });
    }

    @Override
    public void requestTeamTradeMonth(DataCallBack<RankingListBean> callBack) {
        Map<String, Object> params = new HashMap<>();
        RetrofitHelper.getInstance().request(MethodType.POST, URLConst.LeaderboardTeamTradeMonth, params, new ResponseObserver<RankingListBean>() {
            @Override
            public void onSuccessful(RankingListBean bean, String msg) {
                callBack.onSuccessful(bean);
            }

            @Override
            public void onFailure(RankingListBean bean, String msg, String code) {
                callBack.onFailed(msg, code);
                ToastUtil.showShort(msg);
            }
        });
    }

    @Override
    public void requestDirectorBonusesToBe(DataCallBack<ShareToBeBean> callBack) {
        Map<String, Object> params = new HashMap<>();
        RetrofitHelper.getInstance().request(MethodType.POST, URLConst.DirectorBonusesLogToBe, params, new ResponseObserver<ShareToBeBean>() {
            @Override
            public void onSuccessful(ShareToBeBean bean, String msg) {
                callBack.onSuccessful(bean);
            }

            @Override
            public void onFailure(ShareToBeBean bean, String msg, String code) {
                callBack.onFailed(msg, code);
                ToastUtil.showShort(msg);
            }
        });
    }

    @Override
    public void requestGainCount(String cycleType, String param, DataCallBack<IncomeStatisticsBean> callBack) {
        Map<String, Object> params = new HashMap<>();
        params.put("cycleType", cycleType == null ? "" : cycleType);
        params.put("param", param);
        RetrofitHelper.getInstance().request(MethodType.POST, URLConst.ReportGainCount, params, new ResponseObserver<IncomeStatisticsBean>() {
            @Override
            public void onSuccessful(IncomeStatisticsBean bean, String msg) {
                callBack.onSuccessful(bean);
            }

            @Override
            public void onFailure(IncomeStatisticsBean bean, String msg, String code) {
                callBack.onFailed(msg, code);
                ToastUtil.showShort(msg);
            }
        });
    }

    @Override
    public void requestAgentGetLevel(DataCallBack<AgentLevelBean> callBack) {
        Map<String, Object> params = new HashMap<>();
        RetrofitHelper.getInstance().request(MethodType.POST, URLConst.AgentGetLevel, params, new ResponseObserver<AgentLevelBean>() {
            @Override
            public void onSuccessful(AgentLevelBean bean, String msg) {
                callBack.onSuccessful(bean);
            }

            @Override
            public void onFailure(AgentLevelBean bean, String msg, String code) {
                callBack.onFailed(msg, code);
                ToastUtil.showShort(msg);
            }
        });
    }

    @Override
    public void requestCountPrepareNo(List<PrepareConfigBean.DataBean> device_group, DataCallBack<NumberBean> callBack) {
        Map<String, Object> params = new HashMap<>();
        params.put("device_group", new Gson().toJson(device_group));
        RetrofitHelper.getInstance().request(MethodType.POST, URLConst.CountPrepareNo, params, new ResponseObserver<NumberBean>() {
            @Override
            public void onSuccessful(NumberBean bean, String msg) {
                callBack.onSuccessful(bean);
            }

            @Override
            public void onFailure(NumberBean bean, String msg, String code) {
                callBack.onFailed(msg, code);
                ToastUtil.showShort(msg);
            }
        });
    }

    @Override
    public void requestUnReadMsgNum(DataCallBack<UnReadMsgBean> callBack) {
        Map<String, Object> params = new HashMap<>();
        RetrofitHelper.getInstance().request(MethodType.POST, URLConst.unreadMsgNum, params, new ResponseObserver<UnReadMsgBean>() {
            @Override
            public void onSuccessful(UnReadMsgBean bean, String msg) {
                callBack.onSuccessful(bean);
            }

            @Override
            public void onFailure(UnReadMsgBean bean, String msg, String code) {
                callBack.onFailed(msg, code);
                ToastUtil.showShort(msg);
            }
        });
    }

    @Override
    public void requestToBeExpiredCount(DataCallBack<ExpiredCountBean> callBack) {
        Map<String, Object> params = new HashMap<>();
        RetrofitHelper.getInstance().request(MethodType.POST, URLConst.toBeExpiredCount, params, new ResponseObserver<ExpiredCountBean>() {
            @Override
            public void onSuccessful(ExpiredCountBean bean, String msg) {
                callBack.onSuccessful(bean);
            }

            @Override
            public void onFailure(ExpiredCountBean bean, String msg, String code) {
                callBack.onFailed(msg, code);
                ToastUtil.showShort(msg);
            }
        });
    }

    @Override
    public void requestExchangeNumberBuyAdd(String money, String pay_type, DataCallBack<RechargeOrderBean> callBack) {
        Map<String, Object> params = new HashMap<>();
        params.put("money", money);
        params.put("pay_type", pay_type);
        RetrofitHelper.getInstance().request(MethodType.POST, URLConst.ExchangeNumberBuyAdd, params, new ResponseObserver<RechargeOrderBean>() {
            @Override
            public void onSuccessful(RechargeOrderBean bean, String msg) {
                callBack.onSuccessful(bean);
            }

            @Override
            public void onFailure(RechargeOrderBean bean, String msg, String code) {
                callBack.onFailed(msg, code);
                ToastUtil.showShort(msg);
            }
        });
    }

    @Override
    public void requestExchangeNumberBuyPay(String id, String pay_type, DataCallBack<PayNumDataBean> callBack) {
        Map<String, Object> params = new HashMap<>();
        params.put("id", id);
        params.put("pay_type", pay_type);
        RetrofitHelper.getInstance().request(MethodType.POST, URLConst.ExchangeNumberBuyPay, params, new ResponseObserver<PayNumDataBean>() {
            @Override
            public void onSuccessful(PayNumDataBean bean, String msg) {
                callBack.onSuccessful(bean);
            }

            @Override
            public void onFailure(PayNumDataBean bean, String msg, String code) {
                callBack.onFailed(msg, code);
                ToastUtil.showShort(msg);
            }
        });
    }

    @Override
    public void requestExchangeNumberBuyStatus(String id, DataCallBack<PayStatusBean> callBack) {
        Map<String, Object> params = new HashMap<>();
        params.put("id", id);
        RetrofitHelper.getInstance().request(MethodType.POST, URLConst.ExchangeNumberBuyPayStatus, params, new ResponseObserver<PayStatusBean>() {
            @Override
            public void onSuccessful(PayStatusBean bean, String msg) {
                callBack.onSuccessful(bean);
            }

            @Override
            public void onFailure(PayStatusBean bean, String msg, String code) {
                callBack.onFailed(msg, code);
                ToastUtil.showShort(msg);
            }
        });
    }

    @Override
    public void requestExchangeNumberBuyIndex(int page, DataCallBack<PayNumListBean> callBack) {
        Map<String, Object> params = new HashMap<>();
        params.put("page", page);
        params.put("limit", 20);
        RetrofitHelper.getInstance().request(MethodType.POST, URLConst.ExchangeNumberBuyIndex, params, new ResponseObserver<PayNumListBean>() {
            @Override
            public void onSuccessful(PayNumListBean bean, String msg) {
                callBack.onSuccessful(bean);
            }

            @Override
            public void onFailure(PayNumListBean bean, String msg, String code) {
                callBack.onFailed(msg, code);
                ToastUtil.showShort(msg);
            }
        });
    }

    @Override
    public void requestReportStoreCount(String pay_date, DataCallBack<MerchantNumBean> callBack) {
        Map<String, Object> params = new HashMap<>();
        params.put("pay_date", pay_date);
        RetrofitHelper.getInstance().request(MethodType.POST, URLConst.ReportStoreCount, params, new ResponseObserver<MerchantNumBean>() {
            @Override
            public void onSuccessful(MerchantNumBean bean, String msg) {
                callBack.onSuccessful(bean);
            }

            @Override
            public void onFailure(MerchantNumBean bean, String msg, String code) {
                callBack.onFailed(msg, code);
                ToastUtil.showShort(msg);
            }
        });
    }

    @Override
    public void requestAliAuth(String alipay_user_id, DataCallBack<BaseResponseBean> callBack) {
        Map<String, Object> params = new HashMap<>();
        params.put("alipay_user_id", alipay_user_id);
        RetrofitHelper.getInstance().request(MethodType.POST, URLConst.AliAccountAliAuth, params, new ResponseObserver<BaseResponseBean>() {
            @Override
            public void onSuccessful(BaseResponseBean bean, String msg) {
                callBack.onSuccessful(bean);
            }

            @Override
            public void onFailure(BaseResponseBean bean, String msg, String code) {
                callBack.onFailed(msg, code);
                ToastUtil.showShort(msg);
            }
        });
    }

    @Override
    public void requestAliSign(DataCallBack<AliAuthDataBean> callBack) {
        Map<String, Object> params = new HashMap<>();
        RetrofitHelper.getInstance().request(MethodType.POST, URLConst.AliAccountAliSign, params, new ResponseObserver<AliAuthDataBean>() {
            @Override
            public void onSuccessful(AliAuthDataBean bean, String msg) {
                callBack.onSuccessful(bean);
            }

            @Override
            public void onFailure(AliAuthDataBean bean, String msg, String code) {
                callBack.onFailed(msg, code);
                ToastUtil.showShort(msg);
            }
        });
    }

    @Override
    public void requestMyQuotaList(int page, String type, DataCallBack<QuotaListBean> callBack) {
        Map<String, Object> params = new HashMap<>();
        params.put("page", page);
        params.put("type", type);
        params.put("limit", 20);
        RetrofitHelper.getInstance().request(MethodType.POST, URLConst.myQuota, params, new ResponseObserver<QuotaListBean>() {
            @Override
            public void onSuccessful(QuotaListBean bean, String msg) {
                callBack.onSuccessful(bean);
            }

            @Override
            public void onFailure(QuotaListBean bean, String msg, String code) {
                callBack.onFailed(msg, code);
                ToastUtil.showShort(msg);
            }
        });
    }

    @Override
    public void requestTeamRewardList(int page, DataCallBack<TeamRewardListBean> callBack) {
        Map<String, Object> params = new HashMap<>();
        params.put("page", page);
        params.put("limit", 20);
        RetrofitHelper.getInstance().request(MethodType.POST, URLConst.TeamRewardIndex, params, new ResponseObserver<TeamRewardListBean>() {
            @Override
            public void onSuccessful(TeamRewardListBean bean, String msg) {
                callBack.onSuccessful(bean);
            }

            @Override
            public void onFailure(TeamRewardListBean bean, String msg, String code) {
                callBack.onFailed(msg, code);
                ToastUtil.showShort(msg);
            }
        });
    }

    @Override
    public void requestTeamRewardInfo(int page, String team_id, String type, DataCallBack<QuotaListBean> callBack) {
        Map<String, Object> params = new HashMap<>();
        params.put("page", page);
        params.put("limit", 20);
        params.put("team_id", team_id);
        params.put("type", type);
        RetrofitHelper.getInstance().request(MethodType.POST, URLConst.TeamRewardInfo, params, new ResponseObserver<QuotaListBean>() {
            @Override
            public void onSuccessful(QuotaListBean bean, String msg) {
                callBack.onSuccessful(bean);
            }

            @Override
            public void onFailure(QuotaListBean bean, String msg, String code) {
                callBack.onFailed(msg, code);
                ToastUtil.showShort(msg);
            }
        });
    }

    @Override
    public void requestMyQuotaCount(DataCallBack<QuotaCountBean> callBack) {
        Map<String, Object> params = new HashMap<>();
        RetrofitHelper.getInstance().request(MethodType.POST, URLConst.TeamRewardQuotaCount, params, new ResponseObserver<QuotaCountBean>() {
            @Override
            public void onSuccessful(QuotaCountBean bean, String msg) {
                callBack.onSuccessful(bean);
            }

            @Override
            public void onFailure(QuotaCountBean bean, String msg, String code) {
                callBack.onFailed(msg, code);
                ToastUtil.showShort(msg);
            }
        });
    }

    @Override
    public void requestTeamRewardSet(String use_agent_id, String num, DataCallBack<BaseResponseBean> callBack) {
        Map<String, Object> params = new HashMap<>();
        params.put("use_agent_id", use_agent_id);
        params.put("num", num);
        RetrofitHelper.getInstance().request(MethodType.POST, URLConst.TeamRewardQuotaSet, params, new ResponseObserver<BaseResponseBean>() {
            @Override
            public void onSuccessful(BaseResponseBean bean, String msg) {
                callBack.onSuccessful(bean);
            }

            @Override
            public void onFailure(BaseResponseBean bean, String msg, String code) {
                callBack.onFailed(msg, code);
                ToastUtil.showShort(msg);
            }
        });
    }

    @Override
    public void requestTeamSettleList(int page, DataCallBack<SettlementRecordsBean> callBack) {
        Map<String, Object> params = new HashMap<>();
        params.put("page", page);
        params.put("limit", 20);
        RetrofitHelper.getInstance().request(MethodType.POST, URLConst.teamSettleList, params, new ResponseObserver<SettlementRecordsBean>() {
            @Override
            public void onSuccessful(SettlementRecordsBean bean, String msg) {
                callBack.onSuccessful(bean);
            }

            @Override
            public void onFailure(SettlementRecordsBean bean, String msg, String code) {
                callBack.onFailed(msg, code);
                ToastUtil.showShort(msg);
            }
        });
    }

    @Override
    public void requestFirmMsg(DataCallBack<FirmMsgBean> callBack) {
        Map<String, Object> params = new HashMap<>();
        RetrofitHelper.getInstance().request(MethodType.POST, URLConst.firmMsg, params, new ResponseObserver<FirmMsgBean>() {
            @Override
            public void onSuccessful(FirmMsgBean bean, String msg) {
                callBack.onSuccessful(bean);
            }

            @Override
            public void onFailure(FirmMsgBean bean, String msg, String code) {
                callBack.onFailed(msg, code);
                ToastUtil.showShort(msg);
            }
        });
    }

    @Override
    public void requestEditFrameStatus(String id, DataCallBack<BaseResponseBean> callBack) {
        Map<String, Object> params = new HashMap<>();
        params.put("id", id);
        RetrofitHelper.getInstance().request(MethodType.POST, URLConst.editFrameStatus, params, new ResponseObserver<BaseResponseBean>() {
            @Override
            public void onSuccessful(BaseResponseBean bean, String msg) {
                callBack.onSuccessful(bean);
            }

            @Override
            public void onFailure(BaseResponseBean bean, String msg, String code) {
                callBack.onFailed(msg, code);
                ToastUtil.showShort(msg);
            }
        });
    }

    @Override
    public void requestAdIndex(DataCallBack<BannerListBean> callBack) {
        Map<String, Object> params = new HashMap<>();
        params.put("page", 1);
        params.put("limit", 20);
        RetrofitHelper.getInstance().request(MethodType.POST, URLConst.AdIndex, params, new ResponseObserver<BannerListBean>() {
            @Override
            public void onSuccessful(BannerListBean bean, String msg) {
                callBack.onSuccessful(bean);
            }

            @Override
            public void onFailure(BannerListBean bean, String msg, String code) {
                callBack.onFailed(msg, code);
                ToastUtil.showShort(msg);
            }
        });
    }

    @Override
    public void requestCourseIndex(String course_type, DataCallBack<CourseListBean> callBack) {
        Map<String, Object> params = new HashMap<>();
        params.put("page", 1);
        params.put("limit", 50);
        params.put("course_type", course_type);
        RetrofitHelper.getInstance().request(MethodType.POST, URLConst.CourseIndex, params, new ResponseObserver<CourseListBean>() {
            @Override
            public void onSuccessful(CourseListBean bean, String msg) {
                callBack.onSuccessful(bean);
            }

            @Override
            public void onFailure(CourseListBean bean, String msg, String code) {
                callBack.onFailed(msg, code);
                ToastUtil.showShort(msg);
            }
        });
    }

    @Override
    public void requestCourseShow(String id, DataCallBack<CourseDetialsBean> callBack) {
        Map<String, Object> params = new HashMap<>();
        params.put("goods_id", id);
        RetrofitHelper.getInstance().request(MethodType.POST, URLConst.CourseShow, params, new ResponseObserver<CourseDetialsBean>() {
            @Override
            public void onSuccessful(CourseDetialsBean bean, String msg) {
                callBack.onSuccessful(bean);
            }

            @Override
            public void onFailure(CourseDetialsBean bean, String msg, String code) {
                callBack.onFailed(msg, code);
                ToastUtil.showShort(msg);
            }
        });
    }

    @Override
    public void requestCourseShare(String goods_id, DataCallBack<CourseShareBean> callBack) {
        Map<String, Object> params = new HashMap<>();
        params.put("goods_id", goods_id);
        RetrofitHelper.getInstance().request(MethodType.POST, URLConst.CourseShare, params, new ResponseObserver<CourseShareBean>() {
            @Override
            public void onSuccessful(CourseShareBean bean, String msg) {
                callBack.onSuccessful(bean);
            }

            @Override
            public void onFailure(CourseShareBean bean, String msg, String code) {
                callBack.onFailed(msg, code);
                ToastUtil.showShort(msg);
            }
        });
    }

    @Override
    public void requestCourseCommentAdd(String course_id, String content, String type, DataCallBack<BaseResponseBean> callBack) {
        Map<String, Object> params = new HashMap<>();
        params.put("course_id", course_id);
        params.put("content", content);
        params.put("type", type);
        RetrofitHelper.getInstance().request(MethodType.POST, URLConst.CourseCommentCreate, params, new ResponseObserver<BaseResponseBean>() {
            @Override
            public void onSuccessful(BaseResponseBean bean, String msg) {
                callBack.onSuccessful(bean);
            }

            @Override
            public void onFailure(BaseResponseBean bean, String msg, String code) {
                callBack.onFailed(msg, code);
                ToastUtil.showShort(msg);
            }
        });
    }

    @Override
    public void requestCourseCommentIndex(int page, String course_id, String type, DataCallBack<CommentListBean> callBack) {
        Map<String, Object> params = new HashMap<>();
        params.put("course_id", course_id);
        params.put("type", type);
        params.put("page", page);
        params.put("limit", 50);
        RetrofitHelper.getInstance().request(MethodType.POST, URLConst.CourseCommentIndex, params, new ResponseObserver<CommentListBean>() {
            @Override
            public void onSuccessful(CommentListBean bean, String msg) {
                callBack.onSuccessful(bean);
            }

            @Override
            public void onFailure(CommentListBean bean, String msg, String code) {
                callBack.onFailed(msg, code);
                ToastUtil.showShort(msg);
            }
        });
    }

    @Override
    public void requestCourseCommentPraise(String comment_id, DataCallBack<BaseResponseBean> callBack) {
        Map<String, Object> params = new HashMap<>();
        params.put("comment_id", comment_id);
        RetrofitHelper.getInstance().request(MethodType.POST, URLConst.CourseCommentPraise, params, new ResponseObserver<BaseResponseBean>() {
            @Override
            public void onSuccessful(BaseResponseBean bean, String msg) {
                callBack.onSuccessful(bean);
            }

            @Override
            public void onFailure(BaseResponseBean bean, String msg, String code) {
                callBack.onFailed(msg, code);
                ToastUtil.showShort(msg);
            }
        });
    }

    @Override
    public void requestCourseMsg(DataCallBack<HomeMsgListBean> callBack) {
        Map<String, Object> params = new HashMap<>();
        RetrofitHelper.getInstance().request(MethodType.POST, URLConst.MessageCenterCourse, params, new ResponseObserver<HomeMsgListBean>() {
            @Override
            public void onSuccessful(HomeMsgListBean bean, String msg) {
                callBack.onSuccessful(bean);
            }

            @Override
            public void onFailure(HomeMsgListBean bean, String msg, String code) {
                callBack.onFailed(msg, code);
                ToastUtil.showShort(msg);
            }
        });
    }

    @Override
    public void requestAboutIndex(DataCallBack<WuDiBean> callBack) {
        Map<String, Object> params = new HashMap<>();
        RetrofitHelper.getInstance().request(MethodType.POST, URLConst.AboutIndex, params, new ResponseObserver<WuDiBean>() {
            @Override
            public void onSuccessful(WuDiBean bean, String msg) {
                callBack.onSuccessful(bean);
            }

            @Override
            public void onFailure(WuDiBean bean, String msg, String code) {
                callBack.onFailed(msg, code);
                ToastUtil.showShort(msg);
            }
        });
    }

    @Override
    public void requestSmokeHarm(DataCallBack<SmokeListBean> callBack) {
        Map<String, Object> params = new HashMap<>();
        RetrofitHelper.getInstance().request(MethodType.POST, URLConst.HarmBenefitsHarm, params, new ResponseObserver<SmokeListBean>() {
            @Override
            public void onSuccessful(SmokeListBean bean, String msg) {
                callBack.onSuccessful(bean);
            }

            @Override
            public void onFailure(SmokeListBean bean, String msg, String code) {
                callBack.onFailed(msg, code);
                ToastUtil.showShort(msg);
            }
        });
    }

    @Override
    public void requestSmokeBenefits(DataCallBack<SmokeListBean> callBack) {
        Map<String, Object> params = new HashMap<>();
        RetrofitHelper.getInstance().request(MethodType.POST, URLConst.HarmBenefitsBenefits, params, new ResponseObserver<SmokeListBean>() {
            @Override
            public void onSuccessful(SmokeListBean bean, String msg) {
                callBack.onSuccessful(bean);
            }

            @Override
            public void onFailure(SmokeListBean bean, String msg, String code) {
                callBack.onFailed(msg, code);
                ToastUtil.showShort(msg);
            }
        });
    }
}
